From 3c09b6d32568b2b78d796f2bddeec114fcff6fce Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 19 Jul 2021 23:49:51 +0300 Subject: [PATCH] [SSE] Lock allow ranges button --- apps/spreadsheeteditor/main/app/controller/WBProtection.js | 2 ++ apps/spreadsheeteditor/main/app/view/WBProtection.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/WBProtection.js b/apps/spreadsheeteditor/main/app/controller/WBProtection.js index 669ee7f034..e4dffaee04 100644 --- a/apps/spreadsheeteditor/main/app/controller/WBProtection.js +++ b/apps/spreadsheeteditor/main/app/controller/WBProtection.js @@ -273,6 +273,7 @@ define([ var props = me.getWSProps(); me.view.btnProtectSheet.toggle(props.wsLock, true); //current sheet Common.Utils.lockControls(SSE.enumLock['Objects'], props.wsProps['Objects'], { array: [me.view.chLockedText, me.view.chLockedShape]}); + Common.Utils.lockControls(SSE.enumLock.wsLock, props.wsLock, { array: [me.view.btnAllowRanges]}); }); }, @@ -285,6 +286,7 @@ define([ this.view.btnProtectSheet.toggle(props.wsLock, true); //current sheet Common.Utils.lockControls(SSE.enumLock['Objects'], props.wsProps['Objects'], { array: [this.view.chLockedText, this.view.chLockedShape]}); + Common.Utils.lockControls(SSE.enumLock.wsLock, props.wsLock, { array: [this.view.btnAllowRanges]}); Common.NotificationCenter.trigger('protect:wslock', props); }, diff --git a/apps/spreadsheeteditor/main/app/view/WBProtection.js b/apps/spreadsheeteditor/main/app/view/WBProtection.js index bac5bad620..da36a529ac 100644 --- a/apps/spreadsheeteditor/main/app/view/WBProtection.js +++ b/apps/spreadsheeteditor/main/app/view/WBProtection.js @@ -133,7 +133,7 @@ define([ cls: 'btn-toolbar x-huge icon-top', iconCls: 'toolbar__icon allow-edit-ranges', caption: this.txtAllowRanges, - lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth] + lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock] }); this.lockedControls.push(this.btnAllowRanges);