[SSE] locked 'pivot table' options for offline files
This commit is contained in:
parent
91972b300a
commit
0175dc8e9d
|
@ -1000,7 +1000,7 @@ define([
|
||||||
statusbarController.getView('Statusbar').changeViewMode(true);
|
statusbarController.getView('Statusbar').changeViewMode(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram)
|
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && !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');
|
||||||
|
|
|
@ -2953,15 +2953,17 @@ define([
|
||||||
me.toolbar.setApi(me.api);
|
me.toolbar.setApi(me.api);
|
||||||
|
|
||||||
if ( !config.isEditDiagram && !config.isEditMailMerge ) {
|
if ( !config.isEditDiagram && !config.isEditMailMerge ) {
|
||||||
var tab = {action: 'pivot', caption: me.textPivot};
|
if ( !config.isOffline ) {
|
||||||
var $panel = me.getApplication().getController('PivotTable').createToolbarPanel();
|
tab = {action: 'pivot', caption: me.textPivot};
|
||||||
if ( $panel ) {
|
$panel = me.getApplication().getController('PivotTable').createToolbarPanel();
|
||||||
me.toolbar.addTab(tab, $panel, 3);
|
if ($panel) {
|
||||||
me.toolbar.setVisible('pivot', true);
|
me.toolbar.addTab(tab, $panel, 3);
|
||||||
|
me.toolbar.setVisible('pivot', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
var tab = {action: 'review', caption: me.toolbar.textTabCollaboration};
|
||||||
$panel = me.getApplication().getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
var $panel = me.getApplication().getController('Common.Controllers.ReviewChanges').createToolbarPanel();
|
||||||
if ( $panel )
|
if ( $panel )
|
||||||
me.toolbar.addTab(tab, $panel, 4);
|
me.toolbar.addTab(tab, $panel, 4);
|
||||||
|
|
||||||
|
@ -2978,7 +2980,7 @@ define([
|
||||||
|
|
||||||
if ( config.isProtectSupport && config.isOffline ) {
|
if ( config.isProtectSupport && config.isOffline ) {
|
||||||
tab = {action: 'protect', caption: me.toolbar.textTabProtect};
|
tab = {action: 'protect', caption: me.toolbar.textTabProtect};
|
||||||
var $panel = me.getApplication().getController('Common.Controllers.Protection').createToolbarPanel();
|
$panel = me.getApplication().getController('Common.Controllers.Protection').createToolbarPanel();
|
||||||
if ($panel)
|
if ($panel)
|
||||||
me.toolbar.addTab(tab, $panel, 5);
|
me.toolbar.addTab(tab, $panel, 5);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue