Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(relation_map): floating buttons stuck when showing source
Elian Doranf30bdd54b1be
diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsxindex a423d0ccd1..8f4288eff7 100644--- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx+++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx@@ -218,8 +218,8 @@ function SaveToNoteButton({ note }: FloatingButtonContext) {/>}-function RelationMapButtons({ note, triggerEvent }: FloatingButtonContext) {- const isEnabled = (note.type === "relationMap");+function RelationMapButtons({ note, isDefaultViewMode, triggerEvent }: FloatingButtonContext) {+ const isEnabled = (note.type === "relationMap" && isDefaultViewMode);return isEnabled && (<><FloatingButton