From 7fb414fa4fd77704838c341e1bd4b6e43bf278db Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 11 Oct 2017 13:10:05 +0300 Subject: [PATCH] [SSE] Disable pivot settings in the right panel and toolbar pivot tab. --- .../main/app/controller/RightMenu.js | 2 +- .../main/app/view/PivotTable.js | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/RightMenu.js b/apps/spreadsheeteditor/main/app/controller/RightMenu.js index 59be867404..4221359db1 100644 --- a/apps/spreadsheeteditor/main/app/controller/RightMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/RightMenu.js @@ -194,7 +194,7 @@ define([ this._settings[settingsType].btn.updateHint(this.rightmenu.txtSparklineSettings); } - if (pivotInfo) { + if (pivotInfo && false) { // disable pivot settings settingsType = Common.Utils.documentSettingsType.Pivot; this._settings[settingsType].props = pivotInfo; this._settings[settingsType].locked = isCellLocked; diff --git a/apps/spreadsheeteditor/main/app/view/PivotTable.js b/apps/spreadsheeteditor/main/app/view/PivotTable.js index 7189ee1488..62459e5e37 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotTable.js +++ b/apps/spreadsheeteditor/main/app/view/PivotTable.js @@ -167,7 +167,8 @@ define([ this.btnAddPivot = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', iconCls: 'btn-ic-docspell', - caption: this.txtCreate + caption: this.txtCreate, + disabled : true }); // this.lockedControls.push(this.btnAddPivot); @@ -175,6 +176,7 @@ define([ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertimage', caption : this.capLayout, + disabled : true, menu : new Common.UI.Menu({ items: [ { caption: this.mniLayoutCompact, value: 0 }, @@ -186,12 +188,13 @@ define([ ] }) }); - this.lockedControls.push(this.btnPivotLayout); + // this.lockedControls.push(this.btnPivotLayout); // remove commentings after enabled option this.btnPivotBlankRows = new Common.UI.Button({ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertimage', caption : this.capBlankRows, + disabled : true, menu : new Common.UI.Menu({ items: [ { caption: this.mniInsertBlankLine, value: 'insert' }, @@ -199,12 +202,13 @@ define([ ] }) }); - this.lockedControls.push(this.btnPivotBlankRows); + // this.lockedControls.push(this.btnPivotBlankRows); // remove commentings after enabled option this.btnPivotSubtotals = new Common.UI.Button({ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertimage', caption : this.capSubtotals, + disabled : true, menu : new Common.UI.Menu({ items: [ { caption: this.mniNoSubtotals, value: 0 }, @@ -213,12 +217,13 @@ define([ ] }) }); - this.lockedControls.push(this.btnPivotSubtotals); + // this.lockedControls.push(this.btnPivotSubtotals); // remove commentings after enabled option this.btnPivotGrandTotals = new Common.UI.Button({ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertimage', caption : this.capGrandTotals, + disabled : true, menu : new Common.UI.Menu({ items: [ { caption: this.mniOffTotals, value: 0 }, @@ -228,12 +233,13 @@ define([ ] }) }); - this.lockedControls.push(this.btnPivotGrandTotals); + // this.lockedControls.push(this.btnPivotGrandTotals); // remove commentings after enabled option this.btnRefreshPivot = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', iconCls: 'btn-ic-docspell', - caption: this.txtRefresh + caption: this.txtRefresh, + disabled : true }); // this.lockedControls.push(this.btnRefreshPivot);