Add id functionality to undo transactions

This commit is contained in:
Eva 2022-11-22 14:36:45 +01:00 committed by Alonso Torres
parent 32746a5960
commit 694d90d485
15 changed files with 208 additions and 165 deletions

View file

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