mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 09:35:00 +02:00
UBERF-5603 (#4754)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -31,9 +31,10 @@ import {
|
||||
selectionStore,
|
||||
selectionLimit
|
||||
} from './selection'
|
||||
import { deleteObjects, getObjectLinkFragment } from './utils'
|
||||
import { deleteObjects, getObjectLinkFragment, restrictionStore } from './utils'
|
||||
import contact from '@hcengineering/contact'
|
||||
import { locationToUrl } from '@hcengineering/ui'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
/**
|
||||
* Action to be used for copying text to clipboard.
|
||||
@@ -206,6 +207,7 @@ const MoveRight = (doc: Doc | undefined, evt: Event): void => {
|
||||
}
|
||||
|
||||
function ShowActions (doc: Doc | Doc[] | undefined, evt: Event): void {
|
||||
if (get(restrictionStore).disableActions) return
|
||||
evt.preventDefault()
|
||||
|
||||
showPopup(view.component.ActionsPopup, { viewContext: $contextStore.getLastContext() }, 'top')
|
||||
|
||||
Reference in New Issue
Block a user