From 2ef4689acf7f288f293865a2a33981ea6e03fb7c Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Tue, 12 Oct 2021 14:01:32 +0300 Subject: [PATCH] [PE] Fix Bug 53069 --- apps/presentationeditor/mobile/src/view/Toolbar.jsx | 2 +- .../mobile/src/view/settings/Settings.jsx | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/presentationeditor/mobile/src/view/Toolbar.jsx b/apps/presentationeditor/mobile/src/view/Toolbar.jsx index cd479b3a3..df37c212f 100644 --- a/apps/presentationeditor/mobile/src/view/Toolbar.jsx +++ b/apps/presentationeditor/mobile/src/view/Toolbar.jsx @@ -34,7 +34,7 @@ const ToolbarView = props => { onEditClick: () => props.openOptions('edit'), onAddClick: () => props.openOptions('add') })} - { Device.phone ? null : } + { Device.phone ? null : } {props.displayCollaboration && window.matchMedia("(min-width: 375px)").matches ? props.openOptions('coauth')}> : null} props.openOptions('settings')}> diff --git a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx index 6a3704aea..744f34910 100644 --- a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx +++ b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx @@ -57,9 +57,12 @@ const routes = [ ]; -const SettingsList = inject("storeAppOptions")(observer(props => { +const SettingsList = inject("storeAppOptions", "storeToolbarSettings")(observer(props => { const { t } = useTranslation(); const _t = t('View.Settings', {returnObjects: true}); + const storeToolbarSettings = props.storeToolbarSettings; + const disabledPreview = storeToolbarSettings.countPages <= 0; + const navbar = {!props.inPopover && {_t.textDone}} ; @@ -121,7 +124,7 @@ const SettingsList = inject("storeAppOptions")(observer(props => { {navbar} {!props.inPopover && - + } @@ -141,7 +144,7 @@ const SettingsList = inject("storeAppOptions")(observer(props => { - +