mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
feat: add editor state for zotero
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
:editor/show-date-picker? false
|
||||
;; With label or other data
|
||||
:editor/show-input nil
|
||||
:editor/show-zotero false
|
||||
:editor/last-saved-cursor nil
|
||||
:editor/editing? nil
|
||||
:editor/last-edit-block-input-id nil
|
||||
@@ -540,6 +541,16 @@
|
||||
[]
|
||||
(get @state :editor/show-input))
|
||||
|
||||
|
||||
(defn set-editor-show-zotero!
|
||||
[value]
|
||||
(set-state! :editor/show-zotero value))
|
||||
|
||||
(defn get-editor-show-zotero
|
||||
[]
|
||||
(get @state :editor/show-zotero))
|
||||
|
||||
|
||||
(defn set-edit-input-id!
|
||||
[input-id]
|
||||
(swap! state update :editor/editing?
|
||||
@@ -1255,8 +1266,8 @@
|
||||
[q]
|
||||
(when-not (string/blank? q)
|
||||
(update-state! :search/graph-filters
|
||||
(fn [value]
|
||||
(vec (distinct (conj value q)))))))
|
||||
(fn [value]
|
||||
(vec (distinct (conj value q)))))))
|
||||
|
||||
(defn remove-search-filter!
|
||||
[q]
|
||||
|
||||
Reference in New Issue
Block a user