fixed 'filter from current settings' button not activating 'no tag' button

This commit is contained in:
Jack 2020-07-14 21:42:48 +01:00
parent 45fe7b86c4
commit 3ced99c84f

View file

@ -627,10 +627,15 @@ $(".pageAccount #currentConfigFilter").click((e) => {
});
} catch (e) {}
activeTags.forEach((tag) => {
config.resultFilters.push(`tag_${tag}`);
toggleFilterButton(`tag_${tag}`);
});
if (activeTags.length > 0) {
activeTags.forEach((tag) => {
config.resultFilters.push(`tag_${tag}`);
toggleFilterButton(`tag_${tag}`);
});
} else {
config.resultFilters.push(`tag_notag`);
toggleFilterButton(`tag_notag`);
}
saveConfigToCookie();
});