[SSE] Disable pivot settings in the right panel and toolbar pivot tab.

This commit is contained in:
Julia Radzhabova 2017-10-11 13:10:05 +03:00
parent 76cbae43d5
commit 7fb414fa4f
2 changed files with 13 additions and 7 deletions

View file

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

View file

@ -167,7 +167,8 @@ define([
this.btnAddPivot = new Common.UI.Button({ this.btnAddPivot = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'btn-ic-docspell', iconCls: 'btn-ic-docspell',
caption: this.txtCreate caption: this.txtCreate,
disabled : true
}); });
// this.lockedControls.push(this.btnAddPivot); // this.lockedControls.push(this.btnAddPivot);
@ -175,6 +176,7 @@ define([
cls : 'btn-toolbar x-huge icon-top', cls : 'btn-toolbar x-huge icon-top',
iconCls : 'btn-insertimage', iconCls : 'btn-insertimage',
caption : this.capLayout, caption : this.capLayout,
disabled : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniLayoutCompact, value: 0 }, { 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({ this.btnPivotBlankRows = new Common.UI.Button({
cls : 'btn-toolbar x-huge icon-top', cls : 'btn-toolbar x-huge icon-top',
iconCls : 'btn-insertimage', iconCls : 'btn-insertimage',
caption : this.capBlankRows, caption : this.capBlankRows,
disabled : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniInsertBlankLine, value: 'insert' }, { 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({ this.btnPivotSubtotals = new Common.UI.Button({
cls : 'btn-toolbar x-huge icon-top', cls : 'btn-toolbar x-huge icon-top',
iconCls : 'btn-insertimage', iconCls : 'btn-insertimage',
caption : this.capSubtotals, caption : this.capSubtotals,
disabled : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniNoSubtotals, value: 0 }, { 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({ this.btnPivotGrandTotals = new Common.UI.Button({
cls : 'btn-toolbar x-huge icon-top', cls : 'btn-toolbar x-huge icon-top',
iconCls : 'btn-insertimage', iconCls : 'btn-insertimage',
caption : this.capGrandTotals, caption : this.capGrandTotals,
disabled : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniOffTotals, value: 0 }, { 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({ this.btnRefreshPivot = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'btn-ic-docspell', iconCls: 'btn-ic-docspell',
caption: this.txtRefresh caption: this.txtRefresh,
disabled : true
}); });
// this.lockedControls.push(this.btnRefreshPivot); // this.lockedControls.push(this.btnRefreshPivot);