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(client/active_badges): wrong enable + missing toggle for icon pack & custom CSS
Elian Doran3db2c910e072
diff --git a/apps/client/src/widgets/layout/ActiveContentBadges.tsx b/apps/client/src/widgets/layout/ActiveContentBadges.tsxindex 3049e46243..fcccd00f29 100644--- a/apps/client/src/widgets/layout/ActiveContentBadges.tsx+++ b/apps/client/src/widgets/layout/ActiveContentBadges.tsx@@ -251,10 +251,13 @@ function useActiveContentInfo(note: FNote | null | undefined) {for (const labelToCheck of activeContentLabels) {if (note.hasLabel(labelToCheck)) {type = labelToCheck;+ isEnabled = true;+ canToggleEnabled = true;break;} else if (note.hasLabel(`disabled:${labelToCheck}`)) {type = labelToCheck;isEnabled = false;+ canToggleEnabled = true;break;}}