diff --git a/apps/documenteditor/mobile/src/controller/settings/Download.jsx b/apps/documenteditor/mobile/src/controller/settings/Download.jsx
index 574ad8dc20..f4f128835b 100644
--- a/apps/documenteditor/mobile/src/controller/settings/Download.jsx
+++ b/apps/documenteditor/mobile/src/controller/settings/Download.jsx
@@ -9,6 +9,7 @@ class DownloadController extends Component {
constructor(props) {
super(props);
this.onSaveFormat = this.onSaveFormat.bind(this);
+ this.appOptions = this.props.storeAppOptions;
}
closeModal() {
@@ -81,7 +82,11 @@ class DownloadController extends Component {
render() {
return (
-
+
);
}
}
diff --git a/apps/documenteditor/mobile/src/view/settings/Download.jsx b/apps/documenteditor/mobile/src/view/settings/Download.jsx
index d56b8eda76..365ed6cc36 100644
--- a/apps/documenteditor/mobile/src/view/settings/Download.jsx
+++ b/apps/documenteditor/mobile/src/view/settings/Download.jsx
@@ -10,12 +10,14 @@ const Download = props => {
const dataDoc = storeDocumentInfo.dataDoc;
const canFeatureForms = props.storeAppOptions.canFeatureForms;
const isAvailableExt = dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx' || dataDoc.fileType === 'pdf' || dataDoc.fileType === 'pdfa';
- const isForm = dataDoc.fileType === 'oform';
+ const isForm = props.isForm;
+ const canFillForms = props.canFillForms;
+ const isEditableForms = isForm && canFillForms;
return (
-
- {isForm ? t('Settings.textExportAs') : _t.textDownloadAs}
+
+ {isEditableForms ? t('Settings.textExportAs') : _t.textDownloadAs}
props.onSaveFormat(Asc.c_oAscFileType.DOCX)}>
@@ -24,15 +26,11 @@ const Download = props => {
props.onSaveFormat(Asc.c_oAscFileType.DOCXF)}>
,
- props.onSaveFormat(Asc.c_oAscFileType.OFORM)}>
-
-
- ]
- : null}
+ ] : null}
props.onSaveFormat(Asc.c_oAscFileType.PDF)}>
- {!isForm ? [
+ {!isEditableForms ? [
props.onSaveFormat(Asc.c_oAscFileType.PDFA)}>
,