mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: pdf block format not matched alert
This commit is contained in:
@@ -31,9 +31,11 @@
|
||||
[^js event current-block target-block move-to]
|
||||
(let [top? (= move-to :top)
|
||||
nested? (= move-to :nested)
|
||||
alt-key? (and event (.-altKey event))]
|
||||
alt-key? (and event (.-altKey event))
|
||||
current-format (:block/format current-block)
|
||||
target-format (:block/format target-block)]
|
||||
(cond
|
||||
(not= (:block/format current-block) (:block/format target-block))
|
||||
(and current-format target-format (not= current-format target-format))
|
||||
(state/pub-event! [:notification/show
|
||||
{:content [:div "Those two pages have different formats."]
|
||||
:status :warning
|
||||
|
||||
Reference in New Issue
Block a user