[mv3] Don't disable lists according to DNR rule count

Some lists may be composed of only static extended filters.
This commit is contained in:
Raymond Hill 2025-07-23 14:04:58 -04:00
parent 1476ae4262
commit 626b9c7f2d
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -144,11 +144,10 @@ export function renderFilterLists(rulesetData) {
.replace('{{filterCount}}', renderNumber(stats.filterCount));
const fromAdmin = isAdminRuleset(ruleset.id);
dom.cl.toggle(listEntry, 'fromAdmin', fromAdmin);
const disabled = stats.ruleCount === 0 || fromAdmin;
dom.attr(
qs$(listEntry, '.input.checkbox input'),
'disabled',
disabled ? '' : null
fromAdmin ? '' : null
);
};