[SSE] Hide pivot settings in desktop
This commit is contained in:
parent
54d9f09513
commit
4c62e7367f
|
@ -1116,7 +1116,7 @@ define([
|
|||
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);
|
||||
|
||||
var viewport = this.getApplication().getController('Viewport').getView('Viewport');
|
||||
|
|
|
@ -200,7 +200,7 @@ define([
|
|||
this._settings[settingsType].btn.updateHint(this.rightmenu.txtSparklineSettings);
|
||||
}
|
||||
|
||||
if (pivotInfo) {
|
||||
if (pivotInfo && !this.rightmenu.mode.isDesktopApp) {
|
||||
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.isOffline ) {
|
||||
if ( !config.isDesktopApp && !config.isOffline ) {
|
||||
tab = {action: 'pivot', caption: me.textPivot};
|
||||
var pivottab = me.getApplication().getController('PivotTable');
|
||||
$panel = pivottab.createToolbarPanel();
|
||||
|
|
|
@ -131,6 +131,7 @@ define([
|
|||
asctype: Common.Utils.documentSettingsType.Pivot,
|
||||
enableToggle: true,
|
||||
disabled: true,
|
||||
visible: false,
|
||||
toggleGroup: 'tabpanelbtnsGroup',
|
||||
allowMouseEventsOnDisabled: true
|
||||
});
|
||||
|
@ -212,6 +213,9 @@ define([
|
|||
this.signatureSettings = new SSE.Views.SignatureSettings();
|
||||
}
|
||||
|
||||
if (mode && !mode.isDesktopApp)
|
||||
this.btnPivot.setVisible(true);
|
||||
|
||||
if (_.isUndefined(this.scroller)) {
|
||||
this.scroller = new Common.UI.Scroller({
|
||||
el: $(this.el).find('.right-panel'),
|
||||
|
|
Loading…
Reference in a new issue