[DE mobile] For Bug 58670
This commit is contained in:
parent
77c8bd1d71
commit
367fdab130
|
@ -265,12 +265,13 @@ 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 } = this.props;
|
const { canViewComments, canCoAuthoring, canComments, dataDoc } = this.props;
|
||||||
|
|
||||||
const api = Common.EditorApi.get();
|
const api = Common.EditorApi.get();
|
||||||
const inToc = api.asc_GetTableOfContentsPr(true);
|
const inToc = api.asc_GetTableOfContentsPr(true);
|
||||||
const stack = api.getSelectedElements();
|
const stack = api.getSelectedElements();
|
||||||
const canCopy = api.can_CopyCut();
|
const canCopy = api.can_CopyCut();
|
||||||
|
const docExt = dataDoc ? dataDoc.fileType : '';
|
||||||
|
|
||||||
let isText = false,
|
let isText = false,
|
||||||
isObject = false,
|
isObject = false,
|
||||||
|
@ -306,14 +307,14 @@ class ContextMenu extends ContextMenuController {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isDisconnected) {
|
if (!isDisconnected) {
|
||||||
if (canFillForms && canCopy && !locked && !isViewer) {
|
if (canFillForms && canCopy && !locked && (!isViewer || docExt === 'oform')) {
|
||||||
itemsIcon.push({
|
itemsIcon.push({
|
||||||
event: 'cut',
|
event: 'cut',
|
||||||
icon: 'icon-cut'
|
icon: 'icon-cut'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canFillForms && canCopy && !locked && !isViewer) {
|
if (canFillForms && canCopy && !locked && (!isViewer || docExt === 'oform')) {
|
||||||
itemsIcon.push({
|
itemsIcon.push({
|
||||||
event: 'paste',
|
event: 'paste',
|
||||||
icon: 'icon-paste'
|
icon: 'icon-paste'
|
||||||
|
|
Loading…
Reference in a new issue