parent
026c81ff9e
commit
068c9cd6b9
|
@ -214,7 +214,16 @@ class MainController extends Component {
|
|||
|
||||
this.applyMode(storeAppOptions);
|
||||
|
||||
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.View);
|
||||
const storeDocumentInfo = this.props.storeDocumentInfo;
|
||||
const dataDoc = storeDocumentInfo.dataDoc;
|
||||
const isExtRestriction = dataDoc.fileType !== 'oform';
|
||||
|
||||
if(isExtRestriction) {
|
||||
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.View);
|
||||
} else {
|
||||
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.OnlyForms)
|
||||
}
|
||||
|
||||
this.api.asc_LoadDocument();
|
||||
this.api.Resize();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue