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