mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 19:53:36 +08:00
[DE mobile] For Bug 54296
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user