From 0cd7d4dd7ada5d8dc947b287a836309c7037fff9 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 11 Sep 2024 11:09:06 +0200 Subject: [PATCH] Disable tokens tab in inspect mode --- frontend/src/app/main/ui/workspace/sidebar.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar.cljs b/frontend/src/app/main/ui/workspace/sidebar.cljs index b9e9ebe98..a9379951c 100644 --- a/frontend/src/app/main/ui/workspace/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar.cljs @@ -122,9 +122,10 @@ :title (tr "workspace.toolbar.assets")} [:& assets-toolbox {:size (- size 58)}]]) - [:& tab-element {:id :tokens - :title "Tokens"} - [:& tokens-sidebar-tab]]]])]])) + (when-not ^boolean mode-inspect? + [:& tab-element {:id :tokens + :title "Tokens"} + [:& tokens-sidebar-tab]])]])]])) ;; --- Right Sidebar (Component)