1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 'use strict';
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: CA
- *| (C) Copyright IBM Corp. 2017
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define(['../../lib/@waca/core-client/js/core-client/ui/core/Class', '../../DynamicFileLoader'], function (Class, DynamicFileLoader) {
- 'use strict';
- var SourceMemberPropertiesAction = Class.extend({
- /**
- * Determine when we show/hide the menu item
- */
- isItemVisible: function isItemVisible(options) {
- return options.target.activeObject.viewId !== 'modelGridGlobal';
- },
- /**
- * Default action handler
- */
- 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) {
- // TEMP HACK : Change dashboard-common dialog blocker z-index for now. Look at the defect for details
- // https://bajazz05.canlab.ibm.com:9750/ccm/web/projects/Business%20Intelligence#action=com.ibm.team.workitem.viewWorkItem&id=231964
- var propertiesDialog = new modules[0]({
- 'context': context,
- 'selection': selection,
- 'zindex': 9999
- });
- propertiesDialog.open();
- return propertiesDialog;
- });
- }
- }
- });
- return SourceMemberPropertiesAction;
- });
- //# sourceMappingURL=SourceMemberPropertiesAction.js.map
|