fix: quit editor after tagging a block

pull/10438/head
Tienson Qin 2023-09-13 20:03:09 +08:00
parent b2161ac5ec
commit 412447a70a
2 changed files with 7 additions and 1 deletions

View File

@ -55,6 +55,7 @@
[frontend.handler.property :as property-handler]
[frontend.handler.whiteboard :as whiteboard-handler]
[frontend.handler.web.nfs :as nfs-handler]
[frontend.handler.editor :as editor-handler]
[frontend.mobile.core :as mobile]
[frontend.mobile.graph-picker :as graph-picker]
[frontend.mobile.util :as mobile-util]
@ -1008,6 +1009,9 @@
(editor-handler/set-blocks-collapsed! [block-id] false)))))
(property-handler/editing-new-property!))
(defmethod handle :editor/edit-block [[_ block pos id opts]]
(editor-handler/edit-block! block pos id opts))
(defn run!
[]
(let [chan (state/get-events-chan)]

View File

@ -169,7 +169,9 @@
:block/content ""
:block/refs []
:block/link [:block/uuid (:block/uuid page-m)]}]
merge-tx))))))
merge-tx)))
(state/pub-event! [:editor/edit-block page-m :max (:block/uuid page-m) {}]))))
(reset! (:editor/create-page? @state/state) false)))
(defn rebuild-block-refs