From 8bee050b5b6e7e16c7e4dd8959b5f5c3ccf55988 Mon Sep 17 00:00:00 2001 From: Pablo Alba <pablo.alba@kaleidos.net> Date: Mon, 27 Jan 2025 11:45:22 +0100 Subject: [PATCH] :bug: On viewer role, start with inspect tab selected (#5676) --- frontend/src/app/main/ui/workspace/sidebar/options.cljs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options.cljs b/frontend/src/app/main/ui/workspace/sidebar/options.cljs index c5ce31810..e661fb539 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options.cljs @@ -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"