Skip to content

Commit

Permalink
enhance: add node to debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Apr 12, 2023
1 parent 793768f commit cf13507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/frontend/components/right_sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@

(rum/defc history < rum/reactive
[]
(let [state (undo-redo/get-state)]
(let [state (undo-redo/get-state)
page-only-mode? (state/sub :history/page-only-mode?)]
[:div.ml-4
[:div.ml-3.font-bold (if page-only-mode? "page only" "global")]
[:div.p-4 [:.ml-4.mb-2
(history-stack "Undos" (rum/react (:undo-stack state)))
(history-stack "Redos" (rum/react (:redo-stack state)))]]]))
Expand Down

0 comments on commit cf13507

Please sign in to comment.