mirror of
https://github.com/penpot/penpot.git
synced 2025-03-14 16:51:18 -05:00
✨ Add audit events for component annotations
This commit is contained in:
parent
a21a64aa10
commit
4aef2a475a
1 changed files with 10 additions and 2 deletions
|
@ -2225,7 +2225,10 @@
|
||||||
(pcb/with-library-data data)
|
(pcb/with-library-data data)
|
||||||
(pcb/update-component id update-fn))]
|
(pcb/update-component id update-fn))]
|
||||||
|
|
||||||
(rx/of (dch/commit-changes changes))))))
|
(rx/concat
|
||||||
|
(rx/of (dch/commit-changes changes))
|
||||||
|
(when (nil? annotation)
|
||||||
|
(rx/of (ptk/data-event ::ev/event {::ev/name "delete-component-annotation"}))))))))
|
||||||
|
|
||||||
(defn set-annotations-expanded
|
(defn set-annotations-expanded
|
||||||
[expanded]
|
[expanded]
|
||||||
|
@ -2242,7 +2245,12 @@
|
||||||
(if id
|
(if id
|
||||||
(-> (assoc-in state [:workspace-annotations :id-for-create] id)
|
(-> (assoc-in state [:workspace-annotations :id-for-create] id)
|
||||||
(assoc-in [:workspace-annotations :expanded] true))
|
(assoc-in [:workspace-annotations :expanded] true))
|
||||||
(d/dissoc-in state [:workspace-annotations :id-for-create])))))
|
(d/dissoc-in state [:workspace-annotations :id-for-create])))
|
||||||
|
|
||||||
|
ptk/WatchEvent
|
||||||
|
(watch [_ _ _]
|
||||||
|
(when (some? id)
|
||||||
|
(rx/of (ptk/data-event ::ev/event {::ev/name "create-component-annotation"}))))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Preview blend modes
|
;; Preview blend modes
|
||||||
|
|
Loading…
Add table
Reference in a new issue