only show the note if filtering something
This commit is contained in:
parent
30d84d15fa
commit
a0c6450fc1
|
@ -312,7 +312,8 @@ function showFiltersStats({immediately} = {}) {
|
||||||
filtersSelector.numShown = numShown;
|
filtersSelector.numShown = numShown;
|
||||||
filtersSelector.numTotal = numTotal;
|
filtersSelector.numTotal = numTotal;
|
||||||
$('#filters-stats').textContent = t('filteredStyles', [numShown, numTotal]);
|
$('#filters-stats').textContent = t('filteredStyles', [numShown, numTotal]);
|
||||||
document.body.classList.toggle('all-styles-hidden-by-filters', !numShown && numTotal);
|
document.body.classList.toggle('all-styles-hidden-by-filters',
|
||||||
|
!numShown && numTotal && filtersSelector.hide);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user