From ecce8b57fa544995dea34a8e53ebb3e2c8064488 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 30 Jun 2017 18:51:15 +0300 Subject: [PATCH] [SSE] Disable pivot tab in the diagramm and mail merge mode. --- apps/spreadsheeteditor/main/app/controller/Main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 65778aed9..cef1da893 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -908,7 +908,6 @@ define([ toolbarController = application.getController('Toolbar'), statusbarController = application.getController('Statusbar'), rightmenuController = application.getController('RightMenu'), - pivotController = application.getController('PivotTable'), fontsControllers = application.getController('Common.Controllers.Fonts'); fontsControllers && fontsControllers.setApi(me.api); @@ -921,7 +920,8 @@ define([ statusbarController.getView('Statusbar').changeViewMode(true); } - pivotController.setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api); + if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram) + application.getController('PivotTable').setMode(me.appOptions).setConfig({config: me.editorConfig}, me.api); var viewport = this.getApplication().getController('Viewport').getView('Viewport'); viewport.applyEditorMode();