[SSE] Hide pivot settings in desktop

This commit is contained in:
Julia Radzhabova 2020-03-20 17:38:58 +03:00
parent 54d9f09513
commit 4c62e7367f
4 changed files with 7 additions and 3 deletions

View file

@ -1116,7 +1116,7 @@ define([
statusbarController.getView('Statusbar').changeViewMode(true); statusbarController.getView('Statusbar').changeViewMode(true);
} }
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && !me.appOptions.isOffline) if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && !me.appOptions.isDesktopApp && !me.appOptions.isOffline)
application.getController('PivotTable').setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api); application.getController('PivotTable').setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api);
var viewport = this.getApplication().getController('Viewport').getView('Viewport'); var viewport = this.getApplication().getController('Viewport').getView('Viewport');

View file

@ -200,7 +200,7 @@ define([
this._settings[settingsType].btn.updateHint(this.rightmenu.txtSparklineSettings); this._settings[settingsType].btn.updateHint(this.rightmenu.txtSparklineSettings);
} }
if (pivotInfo) { if (pivotInfo && !this.rightmenu.mode.isDesktopApp) {
settingsType = Common.Utils.documentSettingsType.Pivot; settingsType = Common.Utils.documentSettingsType.Pivot;
this._settings[settingsType].props = pivotInfo; this._settings[settingsType].props = pivotInfo;
this._settings[settingsType].locked = isPivotLocked; // disable pivot settings this._settings[settingsType].locked = isPivotLocked; // disable pivot settings

View file

@ -3183,7 +3183,7 @@ define([
me.toolbar.itemsNamedRange = (namedRange && namedRange.menu && namedRange.menu.items) ? [namedRange.menu.items[0], namedRange.menu.items[1]] : []; 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()); Array.prototype.push.apply(me.toolbar.lockControls, formulatab.getButtons());
if ( !config.isOffline ) { if ( !config.isDesktopApp && !config.isOffline ) {
tab = {action: 'pivot', caption: me.textPivot}; tab = {action: 'pivot', caption: me.textPivot};
var pivottab = me.getApplication().getController('PivotTable'); var pivottab = me.getApplication().getController('PivotTable');
$panel = pivottab.createToolbarPanel(); $panel = pivottab.createToolbarPanel();

View file

@ -131,6 +131,7 @@ define([
asctype: Common.Utils.documentSettingsType.Pivot, asctype: Common.Utils.documentSettingsType.Pivot,
enableToggle: true, enableToggle: true,
disabled: true, disabled: true,
visible: false,
toggleGroup: 'tabpanelbtnsGroup', toggleGroup: 'tabpanelbtnsGroup',
allowMouseEventsOnDisabled: true allowMouseEventsOnDisabled: true
}); });
@ -212,6 +213,9 @@ define([
this.signatureSettings = new SSE.Views.SignatureSettings(); this.signatureSettings = new SSE.Views.SignatureSettings();
} }
if (mode && !mode.isDesktopApp)
this.btnPivot.setVisible(true);
if (_.isUndefined(this.scroller)) { if (_.isUndefined(this.scroller)) {
this.scroller = new Common.UI.Scroller({ this.scroller = new Common.UI.Scroller({
el: $(this.el).find('.right-panel'), el: $(this.el).find('.right-panel'),