mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 06:01:38 +02:00
♻️ Changed handoff for inspect everywhere
This commit is contained in:
parent
104059a7b1
commit
3bbf632121
54 changed files with 2430 additions and 2493 deletions
|
@ -188,10 +188,10 @@
|
|||
(let [go-to-dashboard
|
||||
#(st/emit! (dv/go-to-dashboard))
|
||||
|
||||
go-to-handoff
|
||||
go-to-inspect
|
||||
(fn[]
|
||||
(if (:is-logged permissions)
|
||||
(st/emit! dv/close-thumbnails-panel (dv/go-to-section :handoff))
|
||||
(st/emit! dv/close-thumbnails-panel (dv/go-to-section :inspect))
|
||||
(open-login-dialog)))
|
||||
|
||||
navigate
|
||||
|
@ -228,9 +228,9 @@
|
|||
(and (= (:type permissions) :share-link)
|
||||
(= (:who-inspect permissions) "all")))
|
||||
[:button.mode-zone-button.tooltip.tooltip-bottom
|
||||
{:on-click go-to-handoff
|
||||
:class (dom/classnames :active (= section :handoff))
|
||||
:alt (tr "viewer.header.handoff-section" (sc/get-tooltip :open-handoff))}
|
||||
{:on-click go-to-inspect
|
||||
:class (dom/classnames :active (= section :inspect))
|
||||
:alt (tr "viewer.header.inspect-section" (sc/get-tooltip :open-inspect))}
|
||||
i/code])]
|
||||
|
||||
[:& header-options {:section section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue