From ac5412301e67fa590b51fdac5b89827dbf781a50 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 6 Oct 2022 11:12:17 +0200 Subject: [PATCH] :bug: Fix viewer dashboard link --- frontend/src/app/main/ui/viewer/header.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/viewer/header.cljs b/frontend/src/app/main/ui/viewer/header.cljs index ea0bb2850..3f1a69867 100644 --- a/frontend/src/app/main/ui/viewer/header.cljs +++ b/frontend/src/app/main/ui/viewer/header.cljs @@ -202,9 +202,9 @@ [:header.viewer-header [: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 - ;; If the user doesn't have permission we disable the link :style {:pointer-events (when-not (:can-edit permissions) "none")}} i/logo-icon]] [:& header-sitemap {:project project :file file :page page :frame frame :index index}]]