Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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;
}
}