Shareable link pointing to a specific board

This commit is contained in:
Marina López
2024-12-09 12:22:35 +01:00
committed by Alonso Torres
parent ea43a999e9
commit b18ee859b1
8 changed files with 562 additions and 455 deletions

View File

@@ -138,6 +138,8 @@
::mf/private true}
[]
(let [do-copy #(st/emit! (dw/copy-selected))
do-copy-link #(st/emit! (dw/copy-link-to-clipboard))
do-cut #(st/emit! (dw/copy-selected)
(dw/delete-selected))
do-paste #(st/emit! (dw/paste-from-clipboard))
@@ -146,6 +148,9 @@
[:> menu-entry* {:title (tr "workspace.shape.menu.copy")
:shortcut (sc/get-tooltip :copy)
:on-click do-copy}]
[:> menu-entry* {:title (tr "workspace.shape.menu.copy_link")
:shortcut (sc/get-tooltip :copy-link)
:on-click do-copy-link}]
[:> menu-entry* {:title (tr "workspace.shape.menu.cut")
:shortcut (sc/get-tooltip :cut)
:on-click do-cut}]