mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
5d2b614865
commit
f323203012
9 changed files with 20 additions and 26 deletions
|
@ -1,6 +1,6 @@
|
|||
import './filterIndicator.scss';
|
||||
|
||||
export function getFilterStatus(query) {
|
||||
function getFilterStatus(query) {
|
||||
return Boolean(
|
||||
query.Filters
|
||||
|| query.IsFavorite
|
||||
|
@ -25,7 +25,9 @@ export function getFilterStatus(query) {
|
|||
);
|
||||
}
|
||||
|
||||
export function setFilterStatus(page, hasFilters) {
|
||||
export function setFilterStatus(page, query) {
|
||||
const hasFilters = getFilterStatus(query);
|
||||
|
||||
const btnFilterWrapper = page.querySelector('.btnFilter-wrapper');
|
||||
|
||||
if (btnFilterWrapper) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue