mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 11:22:44 +00:00
enhance(ux): open new object in the sidebar
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
(when (seq entities)
|
||||
(set-data! (concat full-data (map :db/id entities))))))})]))
|
||||
(p/let [block (add-new-class-object! class properties)]
|
||||
(state/sidebar-add-block! (state/get-current-repo) (:db/id block) :block)
|
||||
(set-data! (conj (vec full-data) (:db/id block)))))))
|
||||
:show-add-property? true
|
||||
:show-items-count? true
|
||||
@@ -113,6 +114,7 @@
|
||||
(p/let [set-data! (get-in table [:data-fns :set-data!])
|
||||
full-data (:full-data table)
|
||||
block (add-new-property-object! property properties)]
|
||||
(state/sidebar-add-block! (state/get-current-repo) (:db/id block) :block)
|
||||
(set-data! (conj (vec full-data) (:db/id block)))))
|
||||
;; TODO: Add support for adding column
|
||||
:show-add-property? false})))
|
||||
|
||||
Reference in New Issue
Block a user