From b9eb715b0bafbdfd5d535242544b212f98704ce4 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 14 Sep 2023 15:01:59 +0300 Subject: [PATCH] [DE mobile] Fix Bug 64119 --- .../mobile/src/view/settings/SettingsPage.jsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/mobile/src/view/settings/SettingsPage.jsx b/apps/documenteditor/mobile/src/view/settings/SettingsPage.jsx index 95db9f7aec..2fb180ad72 100644 --- a/apps/documenteditor/mobile/src/view/settings/SettingsPage.jsx +++ b/apps/documenteditor/mobile/src/view/settings/SettingsPage.jsx @@ -19,6 +19,7 @@ const SettingsPage = inject("storeAppOptions", "storeReview", "storeDocumentInfo const docTitle = docInfo.dataDoc.title; const docExt = docInfo.dataDoc ? docInfo.dataDoc.fileType : ''; const isNotForm = docExt && docExt !== 'oform'; + const isHistoryDisabled = docExt && (docExt === 'xps' || docExt === 'djvu' || docExt === 'pdf'); const navbar =
{docTitle}
@@ -76,13 +77,15 @@ const SettingsPage = inject("storeAppOptions", "storeReview", "storeDocumentInfo } - { - if(Device.phone) { - onOpenOptions('history'); - } - }}> - - + {!isHistoryDisabled && + { + if(Device.phone) { + onOpenOptions('history'); + } + }}> + + + } { if(Device.phone) { onOpenOptions('navigation');