Merge pull request #1754 from ONLYOFFICE/feature/fix-bug-react

[DE] Fix Bug 54137
This commit is contained in:
maxkadushkin 2022-05-20 15:32:33 +03:00 committed by GitHub
commit 4f21c9eb56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,7 +242,7 @@ class ContextMenu extends ContextMenuController {
} else {
const { t } = this.props;
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 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({
event: 'paste',
icon: 'icon-paste'