Merge pull request #1389 from ONLYOFFICE/fix/bugfix

[SSE] Fix Bug 54381: lock protect buttons when edit cell
This commit is contained in:
Julia Radzhabova 2021-12-06 17:09:37 +03:00 committed by GitHub
commit 7826bc75be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ define([
iconCls: 'toolbar__icon protect-workbook',
enableToggle: true,
caption: this.txtProtectWB,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth],
lock : [_set.editCell, _set.selRangeEdit, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
@ -128,7 +128,7 @@ define([
iconCls: 'toolbar__icon protect-sheet',
enableToggle: true,
caption: this.txtProtectSheet,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth],
lock : [_set.editCell, _set.selRangeEdit, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
@ -139,7 +139,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, _set.wsLock],
lock : [_set.editCell, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'