Remove 'Open' from context menu's (#3350)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov
2023-06-06 12:03:33 +07:00
committed by GitHub
parent 59bed26d6e
commit 7c48095b75
7 changed files with 36 additions and 63 deletions
@@ -32,6 +32,7 @@
import { createQuery, getClient } from '@hcengineering/presentation'
import tags from '@hcengineering/tags'
import { CollaborationDiffViewer } from '@hcengineering/text-editor'
import view from '@hcengineering/view'
import {
Button,
@@ -136,7 +137,11 @@
function showMenu (ev?: Event): void {
if (documentObject) {
showPopup(ContextMenu, { object: documentObject }, (ev as MouseEvent).target as HTMLElement)
showPopup(
ContextMenu,
{ object: documentObject, excludedActions: [view.action.Open] },
(ev as MouseEvent).target as HTMLElement
)
}
}