♻️ Changed handoff for inspect everywhere

This commit is contained in:
alonso.torres 2022-12-29 13:02:43 +01:00
parent 104059a7b1
commit 3bbf632121
54 changed files with 2430 additions and 2493 deletions

View file

@ -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