Skip to content

Commit

Permalink
Support non-default sticky lists
Browse files Browse the repository at this point in the history
"Sticky" lists are those which stay visible when collapsing
non-used lists in the "Filter lists" pane.
  • Loading branch information
gorhill committed Dec 1, 2023
1 parent a8cf083 commit ea7d411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/3p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ const renderFilterLists = ( ) => {
dom.attr(elem, 'href', listDetails.instructionURL || '#');
}
dom.cl.toggle(listEntry, 'isDefault',
listDetails.isDefault === true || listkey === 'user-filters'
listDetails.isDefault === true ||
listDetails.isImportant === true ||
listkey === 'user-filters'
);
elem = qs$(listEntry, '.leafstats');
dom.text(elem, renderLeafStats(on ? listDetails.entryUsedCount : 0, listDetails.entryCount));
Expand Down

0 comments on commit ea7d411

Please sign in to comment.