mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
💩 Comment some code that needs to be refactored (undo related).
This commit is contained in:
parent
f99134c70b
commit
902f7c4181
1 changed files with 6 additions and 4 deletions
|
@ -21,7 +21,8 @@
|
|||
(deftype WatchPageChanges [id]
|
||||
ptk/WatchEvent
|
||||
(watch [_ state stream]
|
||||
(let [stopper (->> stream
|
||||
nil
|
||||
#_(let [stopper (->> stream
|
||||
(rx/filter #(= % ::udp/stop-page-watcher))
|
||||
(rx/take 1))]
|
||||
(->> stream
|
||||
|
@ -41,7 +42,8 @@
|
|||
(defrecord SaveUndoEntry [id]
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [page (udp/pack-page state id)
|
||||
state
|
||||
#_(let [page (udp/pack-page state id)
|
||||
undo {:data (:data page)
|
||||
:metadata (:metadata page)}]
|
||||
(-> state
|
||||
|
@ -88,7 +90,7 @@
|
|||
udp/IPageUpdate
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [page-id (get-in state [:workspace :page])
|
||||
#_(let [page-id (get-in state [:workspace :page])
|
||||
undo-state (get-in state [:undo page-id])
|
||||
stack (:stack undo-state)
|
||||
selected (:selected undo-state 0)]
|
||||
|
@ -123,7 +125,7 @@
|
|||
udp/IPageUpdate
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [page-id (get-in state [:workspace :page])
|
||||
#_(let [page-id (get-in state [:workspace :page])
|
||||
undo-state (get-in state [:undo page-id])
|
||||
stack (:stack undo-state)
|
||||
selected (:selected undo-state)]
|
||||
|
|
Loading…
Reference in a new issue