[DE mobile] Fix Bug 57487 (#1787)

This commit is contained in:
Julia Radzhabova 2022-06-07 23:51:27 +03:00 committed by GitHub
parent a0be79bdee
commit 03afbac58f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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));