chore: enable export+import edn commands

for any user. Better to get feedback early and iterate.
Easy to reverse this as needed
This commit is contained in:
Gabriel Horner
2025-02-11 15:31:29 -05:00
parent 83078a9bef
commit 4ed5897e4e
6 changed files with 132 additions and 123 deletions

View File

@@ -484,7 +484,7 @@
(defmethod handle-action :trigger [_ state _event]
(let [command (some-> state state->highlighted-item :source-command)
dont-close-commands #{:graph/open :graph/remove :dev/replace-graph-with-db-file
:ui/toggle-settings :go/flashcards :dev/import-edn-data}]
:ui/toggle-settings :go/flashcards :misc/import-edn-data}]
(when-let [action (:action command)]
(action)
(when-not (contains? dont-close-commands (:id command))