enhance(ux): open tag page in sidebar after creating in cmdk

This commit is contained in:
Tienson Qin
2025-05-04 16:00:13 +08:00
parent 221e49581b
commit 230a512ccf
2 changed files with 1 additions and 7 deletions

View File

@@ -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]

View File

@@ -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