mirror of https://github.com/logseq/logseq
chore: deprecate fn warning
parent
d87b341f7b
commit
82b2f8ca77
|
@ -48,6 +48,9 @@
|
|||
[]
|
||||
(let [open? (state/sub :ui/command-palette-open?)]
|
||||
(if open?
|
||||
(state/set-modal! #(command-palette {:commands (cp/get-commands)}) false false)
|
||||
(state/set-modal!
|
||||
#(command-palette {:commands (cp/get-commands)})
|
||||
{:fullscreen? false
|
||||
:close-btn? false})
|
||||
(state/close-modal!))
|
||||
nil))
|
||||
|
|
|
@ -1065,8 +1065,10 @@
|
|||
|
||||
(defn set-modal!
|
||||
([modal-panel-content]
|
||||
(set-modal! modal-panel-content false true))
|
||||
([modal-panel-content fullscreen? close-btn?]
|
||||
(set-modal! modal-panel-content
|
||||
{:fullscreen? false
|
||||
:close-btn? true}))
|
||||
([modal-panel-content {:keys [fullscreen? close-btn?]}]
|
||||
(swap! state assoc
|
||||
:modal/show? (boolean modal-panel-content)
|
||||
:modal/panel-content modal-panel-content
|
||||
|
|
Loading…
Reference in New Issue