From 867669cc98c33810c760a2d58328f8fba105476a Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 7 Mar 2022 15:19:51 +0100 Subject: [PATCH] :sparkles: Add missing origin meta on left-toolbar events --- frontend/src/app/main/ui/workspace/left_toolbar.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/left_toolbar.cljs b/frontend/src/app/main/ui/workspace/left_toolbar.cljs index c9c4562af..71d94e95e 100644 --- a/frontend/src/app/main/ui/workspace/left_toolbar.cljs +++ b/frontend/src/app/main/ui/workspace/left_toolbar.cljs @@ -9,6 +9,7 @@ [app.common.geom.point :as gpt] [app.common.math :as mth] [app.common.media :as cm] + [app.main.data.events :as ev] [app.main.data.workspace :as dw] [app.main.data.workspace.shortcuts :as sc] [app.main.refs :as refs] @@ -125,7 +126,8 @@ :on-click (fn [] (r/set-resize-type! :bottom) (st/emit! (dw/remove-layout-flag :colorpalette) - (dw/toggle-layout-flag :textpalette)))} + (-> (dw/toggle-layout-flag :textpalette) + (vary-meta assoc ::ev/origin "workspace-left-toolbar"))))} "Ag"] [:li.tooltip.tooltip-right @@ -134,5 +136,6 @@ :on-click (fn [] (r/set-resize-type! :bottom) (st/emit! (dw/remove-layout-flag :textpalette) - (dw/toggle-layout-flag :colorpalette)))} + (-> (dw/toggle-layout-flag :colorpalette) + (vary-meta assoc ::ev/origin "workspace-left-toolbar"))))} i/palette]]]]))