From 49edd34bf98775be0636f7fb61b8ce238904d359 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Mon, 5 Sep 2022 17:16:23 +0300 Subject: [PATCH] [DE mobile] Fix Bug 58687 --- apps/documenteditor/mobile/src/page/main.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/src/page/main.jsx b/apps/documenteditor/mobile/src/page/main.jsx index b67d760c7..fc8be7b61 100644 --- a/apps/documenteditor/mobile/src/page/main.jsx +++ b/apps/documenteditor/mobile/src/page/main.jsx @@ -115,6 +115,7 @@ class MainPage extends Component { const storeToolbarSettings = this.props.storeToolbarSettings; const isDisconnected = this.props.users.isDisconnected; const isViewer = appOptions.isViewer; + const isEdit = appOptions.isEdit; const isMobileView = appOptions.isMobileView; const disabledControls = storeToolbarSettings.disabledControls; const disabledSettings = storeToolbarSettings.disabledSettings; @@ -217,7 +218,7 @@ class MainPage extends Component { text={isMobileView ? t("Toolbar.textSwitchedMobileView") : t("Toolbar.textSwitchedStandardView")}/> } - {isViewer && !disabledSettings && !disabledControls && !isDisconnected && isAvailableExt && + {isViewer && !disabledSettings && !disabledControls && !isDisconnected && isAvailableExt && isEdit && this.turnOffViewerMode()}>