[DE mobile] Fix Bug 57487 (#1787)
This commit is contained in:
parent
a0be79bdee
commit
03afbac58f
|
@ -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);
|
||||
|
|
|
@ -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 (
|
||||
<Page>
|
||||
|
@ -17,7 +18,7 @@ const Download = props => {
|
|||
<ListItem title="DOCX" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.DOCX)}>
|
||||
<Icon slot="media" icon="icon-format-docx"></Icon>
|
||||
</ListItem>
|
||||
{dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx' ? [
|
||||
{canFeatureForms && (dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx') ? [
|
||||
<ListItem title="DOCXF" key="DOCXF" onClick={() => props.onSaveFormat(Asc.c_oAscFileType.DOCXF)}>
|
||||
<Icon slot="media" icon="icon-format-docxf"></Icon>
|
||||
</ListItem>,
|
||||
|
@ -58,4 +59,4 @@ const Download = props => {
|
|||
)
|
||||
}
|
||||
|
||||
export default inject('storeDocumentInfo')(observer(Download));
|
||||
export default inject('storeDocumentInfo', 'storeAppOptions')(observer(Download));
|
Loading…
Reference in a new issue