From 68093044d211c20d97dd34835f9da1f7116fb4e1 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 7 Dec 2021 15:42:27 +0300 Subject: [PATCH] [DE mobile] Fix Bug 54272 --- apps/documenteditor/mobile/src/controller/Main.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index ae836b33f..3bcb7be53 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -219,6 +219,8 @@ class MainController extends Component { Common.Notifications.trigger('preloader:close'); Common.Notifications.trigger('preloader:endAction', Asc.c_oAscAsyncActionType['BlockInteraction'], this.LoadingDocument); + appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_SetHighlightRequiredFields(true); + let value = LocalStorage.getItem("de-settings-zoom"); const zf = (value !== null) ? parseInt(value) : (appOptions.customization && appOptions.customization.zoom ? parseInt(appOptions.customization.zoom) : 100); (zf === -1) ? this.api.zoomFitToPage() : ((zf === -2) ? this.api.zoomFitToWidth() : this.api.zoom(zf>0 ? zf : 100)); @@ -346,7 +348,6 @@ class MainController extends Component { this.api.asc_setViewMode(!appOptions.isEdit && !appOptions.isRestrictedEdit); appOptions.isRestrictedEdit && appOptions.canComments && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyComments); appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms); - appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_SetHighlightRequiredFields(true); // Set units let value = LocalStorage.getItem('de-mobile-settings-unit');