diff --git a/apps/documenteditor/mobile/src/view/settings/Download.jsx b/apps/documenteditor/mobile/src/view/settings/Download.jsx index 14227e8aa..82d2ded93 100644 --- a/apps/documenteditor/mobile/src/view/settings/Download.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Download.jsx @@ -1,11 +1,13 @@ import React from 'react'; -// import { observer } from "mobx-react"; +import { observer, inject } from "mobx-react"; import { Page, Navbar, List, ListItem, BlockTitle, Icon } from "framework7-react"; import { useTranslation } from "react-i18next"; const Download = props => { const { t } = useTranslation(); const _t = t("Settings", { returnObjects: true }); + const storeDocumentInfo = props.storeDocumentInfo; + const dataDoc = storeDocumentInfo.dataDoc; return ( @@ -18,30 +20,33 @@ const Download = props => { props.onSaveFormat(Asc.c_oAscFileType.PDF)}> - props.onSaveFormat(Asc.c_oAscFileType.PDFA)}> - - - props.onSaveFormat(Asc.c_oAscFileType.TXT)}> - - - props.onSaveFormat(Asc.c_oAscFileType.RTF)}> - - - props.onSaveFormat(Asc.c_oAscFileType.ODT)}> - - - props.onSaveFormat(Asc.c_oAscFileType.HTML)}> - - - props.onSaveFormat(Asc.c_oAscFileType.DOTX)}> - - - props.onSaveFormat(Asc.c_oAscFileType.OTT)}> - - + {dataDoc.fileType !== 'oform' ? [ + props.onSaveFormat(Asc.c_oAscFileType.PDFA)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.TXT)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.RTF)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.ODT)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.HTML)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.DOTX)}> + + , + props.onSaveFormat(Asc.c_oAscFileType.OTT)}> + + + ] + : null} ) } -export default Download; \ No newline at end of file +export default inject('storeDocumentInfo')(observer(Download)); \ No newline at end of file