mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 14:43:56 +00:00
fix: use frontend.util.ref for 'Copy ref' like in the rest of the app, the old one rendered (()) instead of [[]], and also remove the requirement of the old namespace
This commit is contained in:
@@ -26,11 +26,11 @@
|
||||
[frontend.util :as util]
|
||||
[frontend.util.page :as page-util]
|
||||
[frontend.util.text :as text-util]
|
||||
[frontend.util.ref :as ref]
|
||||
[goog.functions :as gfun]
|
||||
[goog.object :as gobj]
|
||||
[goog.userAgent]
|
||||
[logseq.common.util :as common-util]
|
||||
[logseq.common.util.block-ref :as block-ref]
|
||||
[logseq.db :as ldb]
|
||||
[logseq.shui.hooks :as hooks]
|
||||
[logseq.shui.ui :as shui]
|
||||
@@ -427,7 +427,7 @@
|
||||
|
||||
(defn- copy-block-ref [state]
|
||||
(when-let [block-uuid (some-> state state->highlighted-item :source-block :block/uuid)]
|
||||
(editor-handler/copy-block-ref! block-uuid block-ref/->block-ref)
|
||||
(editor-handler/copy-block-ref! block-uuid ref/->block-ref)
|
||||
(shui/dialog-close! :ls-dialog-cmdk)))
|
||||
|
||||
(defmulti handle-action (fn [action _state _event] action))
|
||||
|
||||
Reference in New Issue
Block a user