/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| IBM Cognos Products: Content Explorer *| (C) Copyright IBM Corp. 2018 *| *| US Government Users Restricted Rights - Use, duplication or disclosure *| restricted by GSA ADP Schedule Contract with IBM Corp. * + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + */ define(['underscore', 'bi/content_apps/RunAsOptionsView', 'bacontentnav/lib/@waca/core-client/js/core-client/ui/properties/PropertyUIControl', 'bi/content_apps/nls/StringResource' ], function(_, RunAsOptionsView, PropertyUIControl, StringResource) { 'use strict'; var RunAsJobOptionsView = RunAsOptionsView.extend({ init: function(options) { RunAsJobOptionsView.inherited('init', this, arguments); _.extend(this, options); }, _getRunAsItemsSpec: function() { return [this._getBannerSpec(), this._getSeparatorSpec(), this._getRunNowOrLaterOptions(), this._getExecutionTimePicker(), this._getSeparatorSpec(), this._getFooterSpec() ]; }, _onRun: function() { _.extend(this._selections, this._runOptionsControl.getModifiedProperties()); this.logger.debug('RunAsJobOptionsView._onRun', this._selections); this._executeRequest(); this.glassContext.appController.showToast(StringResource.get('toastRunRequestWasSubmitted')); }, _getRequestParams: function() { return this._appController.hideSlideOut().then(function() { this._setExecutionTimeRequestParams(); }.bind(this)); } }); return RunAsJobOptionsView; });