123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 'use strict';
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: CA
- *| (C) Copyright IBM Corp. 2017 - 2018
- *| 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', './MenuActionHelper'], function (BaseClass, MenuActionHelper) {
- 'use strict';
- var DoMoreActionHandler = BaseClass.extend({
- init: function init(options) {
- DoMoreActionHandler.inherited('init', this, arguments);
- this.dashboardApi = options.dashboardApi;
- this.dataSourcePanel = options.dataSourcePanel;
- },
- /**
- * Do More button event handler. Called when the Do More button is clicked or tapped.
- */
- execute: function execute(evt) {
- var metadataView = this.dataSourcePanel.currentView;
- MenuActionHelper.getActionPayload({
- 'dashboardApi': this.dashboardApi,
- 'id': metadataView.dataSource.getAssetId(),
- 'type': metadataView.dataSource.getType(),
- 'event': evt,
- 'menuId': 'com.ibm.bi.dashboard.dataSources.dataSourceActionsMenu'
- }).then(function (payload) {
- payload.activeObject.parentSlideout = metadataView;
- payload.activeObject.dataSource = metadataView.dataSource;
- this.dashboardApi.showContextMenu(payload);
- }.bind(this));
- return false;
- }
- });
- return DoMoreActionHandler;
- });
- //# sourceMappingURL=DoMoreActionHandler.js.map
|