mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 On viewer role, start with inspect tab selected (#5676)
This commit is contained in:
@@ -197,6 +197,10 @@
|
|||||||
:id "inspect"
|
:id "inspect"
|
||||||
:content inspect-content}])]
|
:content inspect-content}])]
|
||||||
|
|
||||||
|
(mf/with-effect [permissions]
|
||||||
|
(when-not (:can-edit permissions)
|
||||||
|
(on-change-tab :inspect)))
|
||||||
|
|
||||||
[:div {:class (stl/css :tool-window)}
|
[:div {:class (stl/css :tool-window)}
|
||||||
[:> tab-switcher* {:tabs tabs
|
[:> tab-switcher* {:tabs tabs
|
||||||
:default-selected "info"
|
:default-selected "info"
|
||||||
|
|||||||
Reference in New Issue
Block a user