mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 11:47:04 +08:00
[DE mobile] Removed oform format for download
This commit is contained in:
@ -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 (
|
||||
<Download onSaveFormat={this.onSaveFormat} />
|
||||
<Download
|
||||
onSaveFormat={this.onSaveFormat}
|
||||
isForm={this.appOptions.isForm}
|
||||
canFillForms={this.appOptions.canFillForms}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 (
|
||||
<Page>
|
||||
<Navbar title={isForm ? t('Settings.textExport') : _t.textDownload} backLink={_t.textBack} />
|
||||
<BlockTitle>{isForm ? t('Settings.textExportAs') : _t.textDownloadAs}</BlockTitle>
|
||||
<Navbar title={isEditableForms ? t('Settings.textExport') : _t.textDownload} backLink={_t.textBack} />
|
||||
<BlockTitle>{isEditableForms ? t('Settings.textExportAs') : _t.textDownloadAs}</BlockTitle>
|
||||
<List>
|
||||
<ListItem title="DOCX" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.DOCX)}>
|
||||
<Icon slot="media" icon="icon-format-docx"></Icon>
|
||||
@ -24,15 +26,11 @@ const Download = props => {
|
||||
<ListItem title="DOCXF" key="DOCXF" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.DOCXF)}>
|
||||
<Icon slot="media" icon="icon-format-docxf"></Icon>
|
||||
</ListItem>,
|
||||
<ListItem title="OFORM" key="OFORM" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.OFORM)}>
|
||||
<Icon slot="media" icon="icon-format-oform"></Icon>
|
||||
</ListItem>
|
||||
]
|
||||
: null}
|
||||
] : null}
|
||||
<ListItem title="PDF" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.PDF)}>
|
||||
<Icon slot="media" icon="icon-format-pdf"></Icon>
|
||||
</ListItem>
|
||||
{!isForm ? [
|
||||
{!isEditableForms ? [
|
||||
<ListItem title="PDF/A" key="PDF/A" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.PDFA)}>
|
||||
<Icon slot="media" icon="icon-format-pdfa"></Icon>
|
||||
</ListItem>,
|
||||
|
||||
Reference in New Issue
Block a user