[SSE] Lock header button

This commit is contained in:
Julia Radzhabova 2019-07-25 11:32:14 +03:00
parent 4a00a9d804
commit 75d493b2ef
2 changed files with 5 additions and 2 deletions

View file

@ -2324,6 +2324,8 @@ define([
toolbar.lockToolbar(SSE.enumLock.commentLock, (selectionType == Asc.c_oAscSelectionType.RangeCells) && (info.asc_getComments().length>0 || info.asc_getLocked()),
{ array: this.btnsComment });
toolbar.lockToolbar(SSE.enumLock.headerLock, info.asc_getLockedHeaderFooter(), {array: [this.toolbar.btnEditHeader]});
},
onApiSelectionChanged_DiagramEditor: function(info) {

View file

@ -88,7 +88,8 @@ define([
docPropsLock: 'doc-props-lock',
printAreaLock: 'print-area-lock',
namedRangeLock: 'named-range-lock',
multiselectCols:'is-multiselect-cols'
multiselectCols:'is-multiselect-cols',
headerLock: 'header-lock'
};
SSE.Views.Toolbar = Common.UI.Mixtbar.extend(_.extend({
@ -1340,7 +1341,7 @@ define([
cls: 'btn-toolbar x-huge icon-top',
iconCls: 'btn-editheader',
caption: me.capBtnInsHeader,
lock : [_set.editCell, _set.selRangeEdit, _set.printAreaLock, _set.lostConnect, _set.coAuth]
lock : [_set.editCell, _set.selRangeEdit, _set.headerLock, _set.lostConnect, _set.coAuth]
});
me.btnImgAlign = new Common.UI.Button({