fix(client/active_badges): wrong enable + missing toggle for icon pack & custom CSS

This commit is contained in:
Elian Doran 2026-02-15 17:32:34 +02:00
parent 2799e4392f
commit 3db2c910e0
No known key found for this signature in database

View File

@ -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;
}
}