[SSE mobile] Fix Bug 53220
This commit is contained in:
parent
224366ea99
commit
15b48fe3fb
|
@ -411,14 +411,17 @@ class MainController extends Component {
|
||||||
const storeWorksheets = this.props.storeWorksheets;
|
const storeWorksheets = this.props.storeWorksheets;
|
||||||
let {wsLock, wsProps} = this.getWSProps(true);
|
let {wsLock, wsProps} = this.getWSProps(true);
|
||||||
|
|
||||||
|
if(wsProps) {
|
||||||
storeWorksheets.setWsLock(wsLock);
|
storeWorksheets.setWsLock(wsLock);
|
||||||
storeWorksheets.setWsProps(wsProps);
|
storeWorksheets.setWsProps(wsProps);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getWSProps(update) {
|
getWSProps(update) {
|
||||||
const storeAppOptions = this.props.storeAppOptions;
|
const storeAppOptions = this.props.storeAppOptions;
|
||||||
let wsProtection = {};
|
let wsProtection = {};
|
||||||
if (!storeAppOptions.config || !storeAppOptions.isEdit && !storeAppOptions.isRestrictedEdit) return;
|
if (!storeAppOptions.config || !storeAppOptions.isEdit && !storeAppOptions.isRestrictedEdit)
|
||||||
|
return wsProtection;
|
||||||
|
|
||||||
if (update) {
|
if (update) {
|
||||||
let wsLock = !!this.api.asc_isProtectedSheet();
|
let wsLock = !!this.api.asc_isProtectedSheet();
|
||||||
|
@ -436,10 +439,10 @@ class MainController extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
wsProtection = {wsLock, wsProps};
|
wsProtection = {wsLock, wsProps};
|
||||||
}
|
|
||||||
|
|
||||||
return wsProtection;
|
return wsProtection;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_onLongActionEnd(type, id) {
|
_onLongActionEnd(type, id) {
|
||||||
if ( type === Asc.c_oAscAsyncActionType.BlockInteraction && id == Asc.c_oAscAsyncAction.Open ) {
|
if ( type === Asc.c_oAscAsyncActionType.BlockInteraction && id == Asc.c_oAscAsyncAction.Open ) {
|
||||||
|
|
|
@ -101,7 +101,7 @@ export class storeWorksheets {
|
||||||
this.isProtectedWorkbook = value;
|
this.isProtectedWorkbook = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
wsProps = {};
|
wsProps;
|
||||||
setWsProps(value) {
|
setWsProps(value) {
|
||||||
this.wsProps = value;
|
this.wsProps = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue