From eda6c6a4c3e9fafcce499c1bfecdfb51193dec59 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 11 Oct 2024 13:25:17 +0200 Subject: [PATCH] :bug: Fix "Done" button on toolbar on inspect mode should go to design mode --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/sidebar/options.cljs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index da1e694d7..94da9261a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -37,6 +37,7 @@ - Fix problem when translating multiple path points [Github #4459](https://github.com/penpot/penpot/issues/4459) - Fix problem on importing (and exporting) files with flows [Taiga #8914](https://tree.taiga.io/project/penpot/issue/8914) - Fix Internal Error page: "go to your penpot" wrong design [Taiga #8922](https://tree.taiga.io/project/penpot/issue/8922) +- Fix "Done" button on toolbar on inspect mode should go to design mode [Taiga #8933](https://tree.taiga.io/project/penpot/issue/8933) ## 2.2.1 diff --git a/frontend/src/app/main/ui/workspace/sidebar/options.cljs b/frontend/src/app/main/ui/workspace/sidebar/options.cljs index cc6cef0bc..abd2aaf7e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options.cljs @@ -138,6 +138,8 @@ first-selected-shape (first selected-shapes) shape-parent-frame (cfh/get-frame objects (:frame-id first-selected-shape)) + options-mode (mf/deref refs/options-mode-global) + on-change-tab (fn [options-mode] (let [options-mode (keyword options-mode)] @@ -187,6 +189,7 @@ [:> tab-switcher* {:tabs tabs :default-selected "info" :on-change-tab on-change-tab + :selected (name options-mode) :class (stl/css :options-tab-switcher)}]])) ;; TODO: this need optimizations, selected-objects and