mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 21:54:26 +00:00
enhance(ux): open tag page in sidebar after creating in cmdk
This commit is contained in:
@@ -518,7 +518,7 @@
|
||||
create-page? (page-handler/<create! @!input {:redirect? true}))]
|
||||
(shui/dialog-close! :ls-dialog-cmdk)
|
||||
(when (and create-class? result)
|
||||
(state/pub-event! [:class/configure result])))))
|
||||
(state/sidebar-add-block! (state/get-current-repo) (:db/id result) :block)))))
|
||||
|
||||
(defn- get-filter-user-input
|
||||
[input]
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
[logseq.shui.ui :as shui]
|
||||
[promesa.core :as p]))
|
||||
|
||||
(defmethod events/handle :class/configure [[_ page]]
|
||||
(shui/dialog-open!
|
||||
#(block/block-container {} page)
|
||||
{:label "page-configure"
|
||||
:align :top}))
|
||||
|
||||
(defmethod events/handle :go/search [_]
|
||||
(shui/dialog-open!
|
||||
cmdk/cmdk-modal
|
||||
|
||||
Reference in New Issue
Block a user