Correctly toggle URLMenuFilter
This commit is contained in:
parent
4c77ad0f1f
commit
2d2826d192
@ -340,7 +340,8 @@ export class UrlMenuFilter extends MenuFilter {
|
|||||||
async populate() {
|
async populate() {
|
||||||
const filts = await filters();
|
const filts = await filters();
|
||||||
for (const i of filts.all.filter(e => e.id !== "deffilter-all")) {
|
for (const i of filts.all.filter(e => e.id !== "deffilter-all")) {
|
||||||
this.addItem(i.label, this.toggleRegularFilter.bind(this, i));
|
this.addItem(
|
||||||
|
i.label, this.toggleRegularFilter.bind(this, i), this.filters.has(i));
|
||||||
}
|
}
|
||||||
this.addItem("-");
|
this.addItem("-");
|
||||||
sort(
|
sort(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user