[SSE] Check pivot feature
This commit is contained in:
parent
4c62e7367f
commit
43ff8d3788
|
@ -352,6 +352,7 @@ define([
|
|||
this.appOptions.canRequestSharingSettings = this.editorConfig.canRequestSharingSettings;
|
||||
this.appOptions.mentionShare = !((typeof (this.appOptions.customization) == 'object') && (this.appOptions.customization.mentionShare==false));
|
||||
this.appOptions.canMakeActionLink = this.editorConfig.canMakeActionLink;
|
||||
this.appOptions.canFeaturePivot = !!this.api.asc_isSupportFeature("pivot");
|
||||
|
||||
this.headerView = this.getApplication().getController('Viewport').getView('Common.Views.Header');
|
||||
this.headerView.setCanBack(this.appOptions.canBackToFolder === true, (this.appOptions.canBackToFolder) ? this.editorConfig.customization.goback.text : '')
|
||||
|
@ -1116,7 +1117,7 @@ define([
|
|||
statusbarController.getView('Statusbar').changeViewMode(true);
|
||||
}
|
||||
|
||||
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && !me.appOptions.isDesktopApp && !me.appOptions.isOffline)
|
||||
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && me.appOptions.canFeaturePivot)
|
||||
application.getController('PivotTable').setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api);
|
||||
|
||||
var viewport = this.getApplication().getController('Viewport').getView('Viewport');
|
||||
|
|
|
@ -200,7 +200,7 @@ define([
|
|||
this._settings[settingsType].btn.updateHint(this.rightmenu.txtSparklineSettings);
|
||||
}
|
||||
|
||||
if (pivotInfo && !this.rightmenu.mode.isDesktopApp) {
|
||||
if (pivotInfo && this.rightmenu.mode.canFeaturePivot) {
|
||||
settingsType = Common.Utils.documentSettingsType.Pivot;
|
||||
this._settings[settingsType].props = pivotInfo;
|
||||
this._settings[settingsType].locked = isPivotLocked; // disable pivot settings
|
||||
|
|
|
@ -3183,7 +3183,7 @@ define([
|
|||
me.toolbar.itemsNamedRange = (namedRange && namedRange.menu && namedRange.menu.items) ? [namedRange.menu.items[0], namedRange.menu.items[1]] : [];
|
||||
Array.prototype.push.apply(me.toolbar.lockControls, formulatab.getButtons());
|
||||
|
||||
if ( !config.isDesktopApp && !config.isOffline ) {
|
||||
if ( config.canFeaturePivot ) {
|
||||
tab = {action: 'pivot', caption: me.textPivot};
|
||||
var pivottab = me.getApplication().getController('PivotTable');
|
||||
$panel = pivottab.createToolbarPanel();
|
||||
|
|
|
@ -213,7 +213,7 @@ define([
|
|||
this.signatureSettings = new SSE.Views.SignatureSettings();
|
||||
}
|
||||
|
||||
if (mode && !mode.isDesktopApp)
|
||||
if (mode && mode.canFeaturePivot)
|
||||
this.btnPivot.setVisible(true);
|
||||
|
||||
if (_.isUndefined(this.scroller)) {
|
||||
|
|
Loading…
Reference in a new issue