mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[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:
parent
1476ae4262
commit
626b9c7f2d
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue