mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
fix: user can right click delete private tags
resulting in invalid states. Also catch this at outliner level
This commit is contained in:
@@ -2712,10 +2712,11 @@
|
||||
:on-click #(state/sidebar-add-block! (state/get-current-repo) (:db/id tag) :page)}
|
||||
"Open in sidebar"
|
||||
(shui/dropdown-menu-shortcut (shortcut-utils/decorate-binding "shift+click")))
|
||||
(shui/dropdown-menu-item
|
||||
{:key "Remove tag"
|
||||
:on-click #(db-property-handler/delete-property-value! (:db/id block) :block/tags (:db/id tag))}
|
||||
"Remove tag")])
|
||||
(when-not (ldb/private-tags (:db/ident tag))
|
||||
(shui/dropdown-menu-item
|
||||
{:key "Remove tag"
|
||||
:on-click #(db-property-handler/delete-property-value! (:db/id block) :block/tags (:db/id tag))}
|
||||
"Remove tag"))])
|
||||
popup-opts))}
|
||||
(if (and @*hover? (not (ldb/private-tags (:db/ident tag))))
|
||||
[:a.inline-flex.text-muted-foreground.mr-1
|
||||
|
||||
Reference in New Issue
Block a user