Support non-default sticky lists

"Sticky" lists are those which stay visible when collapsing
non-used lists in the "Filter lists" pane.
This commit is contained in:
Raymond Hill 2023-12-01 08:31:28 -05:00
parent a8cf08325d
commit ea7d411bc2
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -130,7 +130,9 @@ const renderFilterLists = ( ) => {
dom.attr(elem, 'href', listDetails.instructionURL || '#'); dom.attr(elem, 'href', listDetails.instructionURL || '#');
} }
dom.cl.toggle(listEntry, 'isDefault', dom.cl.toggle(listEntry, 'isDefault',
listDetails.isDefault === true || listkey === 'user-filters' listDetails.isDefault === true ||
listDetails.isImportant === true ||
listkey === 'user-filters'
); );
elem = qs$(listEntry, '.leafstats'); elem = qs$(listEntry, '.leafstats');
dom.text(elem, renderLeafStats(on ? listDetails.entryUsedCount : 0, listDetails.entryCount)); dom.text(elem, renderLeafStats(on ? listDetails.entryUsedCount : 0, listDetails.entryCount));