1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- "use strict";
- /*
- * Licensed Materials - Property of IBM
- *
- * IBM Cognos Products: ADMIN
- *
- * (C) Copyright IBM Corp. 2017
- *
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['bi/glass/app/plugins/MenuActionInterface'], function (view) {
- 'use strict';
- var SchedueButtonView = view.extend({
- SUBSCRIPTION_SLIDEOUT_PANE_WIDTH: '400px',
- onSelectItem: function onSelectItem(context) {
- var id = context.target.itemId;
- var idTokens = id.split('.');
- var key = idTokens[idTokens.length - 1];
- if (key === "schedule_mgmt") {
- this._showScheduleManagementPane(context.glassContext);
- }
- },
- _showScheduleManagementPane: function _showScheduleManagementPane(glassContext) {
- var context = {
- id: "subscribe_mgmt",
- content: {}
- };
- glassContext.appController.openAppView('schedule_mgmt', context);
- },
- isItemVisible: function isItemVisible(context) {
- var id = context.target.itemId;
- var idTokens = id.split('.');
- var key = idTokens[idTokens.length - 1];
- if (key === "schedule_mgmt") {
- return true;
- } else {
- return false;
- }
- }
- });
- return SchedueButtonView;
- });
|