From a7255d1dd4d040d79209106dcf16e0d303e81459 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 27 Dec 2022 22:55:06 +0400 Subject: [PATCH 1/3] [DE mobile] Fix Bug 60369 --- apps/documenteditor/mobile/src/view/settings/Navigation.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/src/view/settings/Navigation.jsx b/apps/documenteditor/mobile/src/view/settings/Navigation.jsx index ec6226e60..ab0eebcea 100644 --- a/apps/documenteditor/mobile/src/view/settings/Navigation.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Navigation.jsx @@ -105,7 +105,7 @@ const NavigationSheet = inject('storeNavigation')(observer(props => { }, []); return ( - props.onclosed()} style={{height: `${stateHeight}`, opacity: `${stateOpacity}`}}> + props.onclosed()} style={{height: `${stateHeight}`, opacity: `${stateOpacity}`}}>
From e87995d33a5fd2839da1d9d10f25419e82e16359 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 27 Dec 2022 23:16:46 +0400 Subject: [PATCH 2/3] [DE mobile] Fix Bug 60365 --- apps/documenteditor/mobile/src/controller/Main.jsx | 5 ++++- apps/documenteditor/mobile/src/view/Toolbar.jsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 6deb76d39..a44ea3a65 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -236,6 +236,9 @@ class MainController extends Component { const appOptions = this.props.storeAppOptions; const appSettings = this.props.storeApplicationSettings; + const storeDocumentInfo = this.props.storeDocumentInfo; + const dataDoc = storeDocumentInfo.dataDoc; + const isExtRestriction = dataDoc.fileType !== 'oform'; f7.emit('resize'); @@ -268,7 +271,7 @@ class MainController extends Component { value = LocalStorage.getBool('mobile-view', true); - if(value) { + if(value && isExtRestriction) { this.api.ChangeReaderMode(); } else { appOptions.changeMobileView(); diff --git a/apps/documenteditor/mobile/src/view/Toolbar.jsx b/apps/documenteditor/mobile/src/view/Toolbar.jsx index 619ee7f69..e813b89bc 100644 --- a/apps/documenteditor/mobile/src/view/Toolbar.jsx +++ b/apps/documenteditor/mobile/src/view/Toolbar.jsx @@ -8,7 +8,7 @@ const ToolbarView = props => { const { t } = useTranslation(); const isDisconnected = props.isDisconnected; const docExt = props.docExt; - const isAvailableExt = docExt && docExt !== 'djvu' && docExt !== 'pdf' && docExt !== 'xps'; + const isAvailableExt = docExt && docExt !== 'djvu' && docExt !== 'pdf' && docExt !== 'xps' && docExt !== 'oform'; const disableEditBtn = props.isObjectLocked || props.stateDisplayMode || props.disabledEditControls || isDisconnected; const isViewer = props.isViewer; const isMobileView = props.isMobileView; @@ -62,7 +62,7 @@ const ToolbarView = props => { onRedoClick: props.onRedo })} {/*isAvailableExt && !props.disabledControls &&*/} - {(isViewer || !Device.phone) && { + {((isViewer || !Device.phone) && isAvailableExt) && { props.changeMobileView(); props.openOptions('snackbar'); }}>} From 7094bc2089bf451a45a0872bef5c3f75253e0a57 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Wed, 28 Dec 2022 00:14:06 +0400 Subject: [PATCH 3/3] [common] Fix Bug 60360 --- apps/common/mobile/resources/less/material/icons.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/mobile/resources/less/material/icons.less b/apps/common/mobile/resources/less/material/icons.less index 914e15bc3..8147d5876 100644 --- a/apps/common/mobile/resources/less/material/icons.less +++ b/apps/common/mobile/resources/less/material/icons.less @@ -34,6 +34,9 @@ height: 24px; .encoded-svg-mask('', @toolbar-icons); } + &.icon-back { + color: @toolbar-icons; + } &.icon-edit { width: 22px; height: 22px;