enhance(ui): refactor the classic select modal with the shui dialog

This commit is contained in:
charlie
2024-10-11 18:38:34 +08:00
parent ffb3e138c4
commit 669299dd7a
6 changed files with 19 additions and 12 deletions

View File

@@ -444,12 +444,12 @@
:graph/open {:fn #(do
(editor-handler/escape-editing)
(state/set-state! :ui/open-select :graph-open))
(state/pub-event! [:dialog-select/graph-open]))
:binding "alt+shift+g"}
:graph/remove {:fn #(do
(editor-handler/escape-editing)
(state/set-state! :ui/open-select :graph-remove))
(state/pub-event! [:dialog-select/graph-remove]))
:binding []}
:graph/add {:fn (fn [] (route-handler/redirect! {:to :graphs}))