mirror of https://github.com/logseq/logseq
fix(queries): edit button showing in default queries (#5610)
fix edit button showing in default queries Co-authored-by: Tienson Qin <tiensonqin@gmail.com>pull/5600/head
parent
9b82162038
commit
152cc22010
|
@ -2790,12 +2790,12 @@
|
|||
[:span.opacity-60.text-sm.ml-2.results-count
|
||||
(str (count transformed-query-result) " results")]]
|
||||
;;insert an "edit" button in the query view
|
||||
[:a.opacity-70.hover:opacity-100.svg-small.inline
|
||||
{:on-mouse-down (fn [e]
|
||||
(util/stop e)
|
||||
(editor-handler/edit-block! current-block :max (:block/uuid current-block)))}
|
||||
svg/edit]]
|
||||
|
||||
(when-not built-in?
|
||||
[:a.opacity-70.hover:opacity-100.svg-small.inline
|
||||
{:on-mouse-down (fn [e]
|
||||
(util/stop e)
|
||||
(editor-handler/edit-block! current-block :max (:block/uuid current-block)))}
|
||||
svg/edit])]
|
||||
(fn []
|
||||
[:div
|
||||
(when (and current-block (not view-f) (nil? table-view?))
|
||||
|
|
Loading…
Reference in New Issue