[SSE] lock 'protect' buttons while cell editing (#921)

This commit is contained in:
maxkadushkin 2021-06-10 18:43:36 +03:00 committed by GitHub
parent eb93ff3c2c
commit 15df027586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1960,6 +1960,10 @@ define([
toolbar.listStyles.resumeEvents();
this._state.prstyle = undefined;
}
if ( this.appConfig.isDesktopApp && this.appConfig.canProtect ) {
this.getApplication().getController('Common.Controllers.Protection').SetDisabled(is_cell_edited, false);
}
} else {
if (state == Asc.c_oAscCellEditorState.editText) var is_text = true, is_formula = false; else
if (state == Asc.c_oAscCellEditorState.editFormula) is_text = !(is_formula = true); else