only show the note if filtering something

This commit is contained in:
tophf 2017-12-04 21:00:06 +03:00
parent 30d84d15fa
commit a0c6450fc1

View File

@ -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);
} }
} }