mirror of
https://github.com/zadam/trilium.git
synced 2026-02-19 12:14:23 +01:00
fix(client/active_badges): wrong enable + missing toggle for icon pack & custom CSS
This commit is contained in:
parent
2799e4392f
commit
3db2c910e0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user