0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Add missing origin meta on left-toolbar events

This commit is contained in:
Andrey Antukh 2022-03-07 15:19:51 +01:00
parent 0158a93391
commit 867669cc98

View file

@ -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]]]]))