mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: *property-key should be reactive
This commit is contained in:
@@ -348,7 +348,7 @@
|
||||
|
||||
:editor/add-property {:binding "mod+p"
|
||||
:fn (fn [e]
|
||||
(.preventDefault e)
|
||||
(when e (.preventDefault e))
|
||||
(state/pub-event! [:editor/new-property {}]))}
|
||||
|
||||
:ui/toggle-brackets {:binding "mod+c mod+b"
|
||||
@@ -405,7 +405,7 @@
|
||||
:fn (fn [] (js/document.execCommand "copy"))}
|
||||
|
||||
:graph/export-as-html {:fn #(export-handler/download-repo-as-html!
|
||||
(state/get-current-repo))
|
||||
(state/get-current-repo))
|
||||
:binding []}
|
||||
|
||||
:graph/open {:fn #(do
|
||||
@@ -426,7 +426,6 @@
|
||||
:inactive (not config/db-graph-enabled?)
|
||||
:binding false}
|
||||
|
||||
|
||||
:graph/re-index {:fn (fn []
|
||||
(p/let [multiple-windows? (ipc/ipc "graphHasMultipleWindows" (state/get-current-repo))]
|
||||
(state/pub-event! [:graph/ask-for-re-index (atom multiple-windows?) nil])))
|
||||
|
||||
Reference in New Issue
Block a user