[DE] Fix Bug 54137

This commit is contained in:
ShimaginAndrey 2022-05-11 16:49:23 +03:00
parent 936d7d4c50
commit abae3c7a49

View file

@ -242,7 +242,7 @@ class ContextMenu extends ContextMenuController {
} else { } else {
const { t } = this.props; const { t } = this.props;
const _t = t("ContextMenu", {returnObjects: true}); const _t = t("ContextMenu", {returnObjects: true});
const { canViewComments, canCoAuthoring, canComments, dataDoc } = this.props; const { canViewComments, canCoAuthoring, canComments } = this.props;
const api = Common.EditorApi.get(); const api = Common.EditorApi.get();
const inToc = api.asc_GetTableOfContentsPr(true); const inToc = api.asc_GetTableOfContentsPr(true);
@ -290,7 +290,7 @@ class ContextMenu extends ContextMenuController {
}); });
} }
if ( canFillForms && dataDoc.fileType !== 'oform' && !locked ) { if ( canFillForms && canCopy && !locked ) {
itemsIcon.push({ itemsIcon.push({
event: 'paste', event: 'paste',
icon: 'icon-paste' icon: 'icon-paste'