[SSE] Lock allow ranges button

This commit is contained in:
Julia Radzhabova 2021-07-19 23:49:51 +03:00
parent b4c0fd398f
commit 3c09b6d325
2 changed files with 3 additions and 1 deletions

View file

@ -273,6 +273,7 @@ define([
var props = me.getWSProps(); var props = me.getWSProps();
me.view.btnProtectSheet.toggle(props.wsLock, true); //current sheet 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['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 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['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); Common.NotificationCenter.trigger('protect:wslock', props);
}, },

View file

@ -133,7 +133,7 @@ define([
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon allow-edit-ranges', iconCls: 'toolbar__icon allow-edit-ranges',
caption: this.txtAllowRanges, caption: this.txtAllowRanges,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth] lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock]
}); });
this.lockedControls.push(this.btnAllowRanges); this.lockedControls.push(this.btnAllowRanges);