1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 'use strict';
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products
- *| (C) Copyright IBM Corp. 2016, 2017
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define(['../../../lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler', '../../../app/nls/StringResources'], function (BaseClass, stringResources) {
- var ActionHandler = BaseClass.extend({
- getExtraCustomSpec: function getExtraCustomSpec(_ref) {
- var glassContext = _ref.glassContext,
- target = _ref.target;
- var itemSpec = target && target.plugin && target.plugin.itemSpec;
- var module = itemSpec && itemSpec.content && itemSpec.content.module || 'dashboard-core/js/pinning/PinView';
- var dashboardView = glassContext.appController.getCurrentContentView();
- return {
- id: 'dashboardPanel',
- reuseSlideout: true,
- width: '400px',
- position: 'left',
- resizable: {
- min: 300
- },
- pinning: {
- isPinned: true,
- float: false,
- display: false
- },
- label: stringResources.get('pinsOld'),
- content: {
- module: module,
- glassContext: glassContext,
- services: dashboardView.services,
- canvasController: dashboardView.boardLoader.canvasController
- }
- };
- }
- });
- return ActionHandler;
- });
- //# sourceMappingURL=PinningActionHandler.js.map
|