mirror of
https://github.com/penpot/penpot.git
synced 2026-05-22 00:13:41 +00:00
Merge pull request #2416 from penpot/superalex-fix-viewer-dashboard-link
🐛 Fix viewer dashboard link
This commit is contained in:
commit
fe371c088b
@ -202,9 +202,9 @@
|
|||||||
|
|
||||||
[:header.viewer-header
|
[:header.viewer-header
|
||||||
[:div.nav-zone
|
[:div.nav-zone
|
||||||
[:div.main-icon
|
;; If the user doesn't have permission we disable the link
|
||||||
|
[:div.main-icon {:style {:cursor (when-not (:can-edit permissions) "auto")}}
|
||||||
[:a {:on-click go-to-dashboard
|
[:a {:on-click go-to-dashboard
|
||||||
;; If the user doesn't have permission we disable the link
|
|
||||||
:style {:pointer-events (when-not (:can-edit permissions) "none")}} i/logo-icon]]
|
:style {:pointer-events (when-not (:can-edit permissions) "none")}} i/logo-icon]]
|
||||||
|
|
||||||
[:& header-sitemap {:project project :file file :page page :frame frame :index index}]]
|
[:& header-sitemap {:project project :file file :page page :frame frame :index index}]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user