mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 06:21:37 +02:00
✨ Add id functionality to undo transactions
This commit is contained in:
parent
32746a5960
commit
694d90d485
15 changed files with 208 additions and 165 deletions
|
@ -245,10 +245,11 @@
|
|||
(ctsi/set-action-type :navigate)
|
||||
|
||||
:always
|
||||
(ctsi/set-destination (:id target-frame))))]
|
||||
(ctsi/set-destination (:id target-frame))))
|
||||
undo-id (uuid/next)]
|
||||
|
||||
(rx/of
|
||||
(dwu/start-undo-transaction)
|
||||
(dwu/start-undo-transaction undo-id)
|
||||
|
||||
(when (:hide-in-viewer target-frame)
|
||||
; If the target frame is hidden, we need to unhide it so
|
||||
|
@ -274,7 +275,7 @@
|
|||
:else
|
||||
(update-interaction shape index change-interaction))
|
||||
|
||||
(dwu/commit-undo-transaction))))))
|
||||
(dwu/commit-undo-transaction undo-id))))))
|
||||
|
||||
;; --- Overlays
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue