0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-23 05:01:23 -05:00

🐛 On viewer role, start with inspect tab selected (#5676)

This commit is contained in:
Pablo Alba 2025-01-27 11:45:22 +01:00 committed by GitHub
parent 2726fa04c0
commit 8bee050b5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,6 +197,10 @@
:id "inspect"
:content inspect-content}])]
(mf/with-effect [permissions]
(when-not (:can-edit permissions)
(on-change-tab :inspect)))
[:div {:class (stl/css :tool-window)}
[:> tab-switcher* {:tabs tabs
:default-selected "info"