[DE mobile] For Bug 54296

This commit is contained in:
SergeyEzhin
2023-06-02 17:07:54 +03:00
parent b9e3513383
commit b8eaa94007

View File

@ -623,8 +623,13 @@ class MainController extends Component {
this.api.asc_registerCallback('asc_onShowContentControlsActions', (obj, x, y) => {
const storeAppOptions = this.props.storeAppOptions;
const storeDocumentInfo = this.props.storeDocumentInfo;
const isViewer = storeAppOptions.isViewer;
const dataDoc = storeDocumentInfo.dataDoc;
const docExt = dataDoc.fileType;
const isAvailableExt = docExt && docExt !== 'djvu' && docExt !== 'pdf' && docExt !== 'xps' && docExt !== 'oform';
if (!storeAppOptions.isEdit && !(storeAppOptions.isRestrictedEdit && storeAppOptions.canFillForms) || this.props.users.isDisconnected) return;
if (!storeAppOptions.isEdit && !(storeAppOptions.isRestrictedEdit && storeAppOptions.canFillForms) || this.props.users.isDisconnected || (isViewer && isAvailableExt)) return;
switch (obj.type) {
case Asc.c_oAscContentControlSpecificType.DateTime: