1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 'use strict';
- define(['../../lib/@waca/core-client/js/core-client/ui/core/Class', '../../DynamicFileLoader'], function (Class, DynamicFileLoader) {
- 'use strict';
- var SourceMemberPropertiesAction = Class.extend({
-
- isItemVisible: function isItemVisible(options) {
- return options.target.activeObject.viewId !== 'modelGridGlobal';
- },
-
- onSelectItem: function onSelectItem(options) {
- var activeObj = options.target.activeObject;
- var context = activeObj.context;
- var selection = activeObj.data.selection;
- if (context && selection) {
- return DynamicFileLoader.load(['dashboard-analytics/dataSources/dialogs/SourceMemberPropertiesDialog']).then(function (modules) {
-
-
- var propertiesDialog = new modules[0]({
- 'context': context,
- 'selection': selection,
- 'zindex': 9999
- });
- propertiesDialog.open();
- return propertiesDialog;
- });
- }
- }
- });
- return SourceMemberPropertiesAction;
- });
|