mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 20:37:16 +02:00
🐛 Only dangling reset is unavailable, other cases do work
This commit is contained in:
parent
978b309b04
commit
c6067ce336
1 changed files with 13 additions and 16 deletions
|
@ -392,7 +392,7 @@
|
||||||
do-add-component #(st/emit! (dwl/add-component))
|
do-add-component #(st/emit! (dwl/add-component))
|
||||||
do-detach-component #(st/emit! (dwl/detach-component shape-id))
|
do-detach-component #(st/emit! (dwl/detach-component shape-id))
|
||||||
do-detach-component-in-bulk #(st/emit! dwl/detach-selected-components)
|
do-detach-component-in-bulk #(st/emit! dwl/detach-selected-components)
|
||||||
_do-reset-component #(st/emit! (dwl/reset-component shape-id))
|
do-reset-component #(st/emit! (dwl/reset-component shape-id))
|
||||||
do-show-component #(st/emit! (dw/go-to-component component-id))
|
do-show-component #(st/emit! (dw/go-to-component component-id))
|
||||||
do-navigate-component-file #(st/emit! (dwl/nav-to-component-file component-file))
|
do-navigate-component-file #(st/emit! (dwl/nav-to-component-file component-file))
|
||||||
do-update-component #(st/emit! (dwl/update-component-sync shape-id component-file))
|
do-update-component #(st/emit! (dwl/update-component-sync shape-id component-file))
|
||||||
|
@ -453,7 +453,7 @@
|
||||||
:on-click do-detach-component}]
|
:on-click do-detach-component}]
|
||||||
;; This is commented due this functionality is not yet available
|
;; This is commented due this functionality is not yet available
|
||||||
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
||||||
;; :on-click _do-reset-component}]
|
;; :on-click do-reset-component}]
|
||||||
(when components-v2
|
(when components-v2
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.restore-main")
|
[:& menu-entry {:title (tr "workspace.shape.menu.restore-main")
|
||||||
:on-click do-restore-component}])]
|
:on-click do-restore-component}])]
|
||||||
|
@ -461,9 +461,8 @@
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.detach-instance")
|
[:& menu-entry {:title (tr "workspace.shape.menu.detach-instance")
|
||||||
:shortcut (sc/get-tooltip :detach-component)
|
:shortcut (sc/get-tooltip :detach-component)
|
||||||
:on-click do-detach-component}]
|
:on-click do-detach-component}]
|
||||||
;; This is commented due this functionality is not yet available
|
[:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
||||||
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
:on-click do-reset-component}]
|
||||||
;; :on-click _do-reset-component}]
|
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.update-main")
|
[:& menu-entry {:title (tr "workspace.shape.menu.update-main")
|
||||||
:on-click do-update-component}]
|
:on-click do-update-component}]
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.show-main")
|
[:& menu-entry {:title (tr "workspace.shape.menu.show-main")
|
||||||
|
@ -475,7 +474,7 @@
|
||||||
:on-click do-detach-component}]
|
:on-click do-detach-component}]
|
||||||
;; This is commented due this functionality is not yet available
|
;; This is commented due this functionality is not yet available
|
||||||
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
||||||
;; :on-click _do-reset-component}]
|
;; :on-click do-reset-component}]
|
||||||
(when components-v2
|
(when components-v2
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.restore-main")
|
[:& menu-entry {:title (tr "workspace.shape.menu.restore-main")
|
||||||
:on-click do-restore-component}])]
|
:on-click do-restore-component}])]
|
||||||
|
@ -483,12 +482,10 @@
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.detach-instance")
|
[:& menu-entry {:title (tr "workspace.shape.menu.detach-instance")
|
||||||
:shortcut (sc/get-tooltip :detach-component)
|
:shortcut (sc/get-tooltip :detach-component)
|
||||||
:on-click do-detach-component}]
|
:on-click do-detach-component}]
|
||||||
;; This is commented due this functionality is not yet available
|
[:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
||||||
;; [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
|
:on-click do-reset-component}]
|
||||||
;; :on-click _do-reset-component}]
|
[:& menu-entry {:title (tr "workspace.shape.menu.update-main")
|
||||||
;; This is commented due this functionality is not yet available
|
:on-click _do-update-remote-component}]
|
||||||
;;[:& menu-entry {:title (tr "workspace.shape.menu.update-main")
|
|
||||||
;; :on-click _do-update-remote-component}]
|
|
||||||
[:& menu-entry {:title (tr "workspace.shape.menu.go-main")
|
[:& menu-entry {:title (tr "workspace.shape.menu.go-main")
|
||||||
:on-click do-navigate-component-file}]])))])
|
:on-click do-navigate-component-file}]])))])
|
||||||
[:& menu-separator]]))
|
[:& menu-separator]]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue