mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
Merge branch 'feat/db' into refactor/tag-as-type
This commit is contained in:
@@ -761,11 +761,15 @@
|
||||
|
||||
(defn- input-placeholder
|
||||
[sidebar?]
|
||||
(let [search-mode (:search/mode @state/state)]
|
||||
(let [search-mode (:search/mode @state/state)
|
||||
search-args (:search/args @state/state)]
|
||||
(cond
|
||||
(and (= search-mode :graph) (not sidebar?))
|
||||
"Add graph filter"
|
||||
|
||||
(= search-args :new-page)
|
||||
"Type a page name to create"
|
||||
|
||||
:else
|
||||
"What are you looking for?")))
|
||||
|
||||
@@ -949,6 +953,7 @@
|
||||
::input (atom (or (:initial-input opts) "")))))
|
||||
:will-unmount (fn [state]
|
||||
(state/set-state! :search/mode nil)
|
||||
(state/set-state! :search/args nil)
|
||||
state)}
|
||||
(mixins/event-mixin
|
||||
(fn [state]
|
||||
|
||||
Reference in New Issue
Block a user