From 90e54cc732266acdd2c82b9fe7a4be144e3c33c9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 7 Jun 2022 22:59:09 +0300 Subject: [PATCH] [DE mobile] Fix Bug 57487 --- apps/documenteditor/mobile/src/store/appOptions.js | 1 + apps/documenteditor/mobile/src/view/settings/Download.jsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/src/store/appOptions.js b/apps/documenteditor/mobile/src/store/appOptions.js index 29fba4077..a156c6560 100644 --- a/apps/documenteditor/mobile/src/store/appOptions.js +++ b/apps/documenteditor/mobile/src/store/appOptions.js @@ -86,6 +86,7 @@ export class storeAppOptions { && (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose); this.canBack = this.canBackToFolder === true; this.canPlugins = false; + this.canFeatureForms = !!Common.EditorApi.get().asc_isSupportFeature("forms"); AscCommon.UserInfoParser.setParser(true); AscCommon.UserInfoParser.setCurrentName(this.user.fullname); diff --git a/apps/documenteditor/mobile/src/view/settings/Download.jsx b/apps/documenteditor/mobile/src/view/settings/Download.jsx index 4e822fd2e..f2e82d717 100644 --- a/apps/documenteditor/mobile/src/view/settings/Download.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Download.jsx @@ -8,6 +8,7 @@ const Download = props => { const _t = t("Settings", { returnObjects: true }); const storeDocumentInfo = props.storeDocumentInfo; const dataDoc = storeDocumentInfo.dataDoc; + const canFeatureForms = props.storeAppOptions.canFeatureForms; return ( @@ -17,7 +18,7 @@ const Download = props => { props.onSaveFormat(Asc.c_oAscFileType.DOCX)}> - {dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx' ? [ + {canFeatureForms && (dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx') ? [ props.onSaveFormat(Asc.c_oAscFileType.DOCXF)}> , @@ -58,4 +59,4 @@ const Download = props => { ) } -export default inject('storeDocumentInfo')(observer(Download)); \ No newline at end of file +export default inject('storeDocumentInfo', 'storeAppOptions')(observer(Download)); \ No newline at end of file