1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add Filter Status Indicator

This commit is contained in:
grafixeyehero 2024-06-18 05:00:20 +03:00
parent 79236796df
commit c779035a75
10 changed files with 107 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import libraryBrowser from '../../scripts/libraryBrowser';
import loading from '../../components/loading/loading';
import * as userSettings from '../../scripts/settings/userSettings';
import Events from '../../utils/events.ts';
import { getFilterStatus, setFilterStatus } from 'components/filterdialog/filterIndicator';
import '../../elements/emby-itemscontainer/emby-itemscontainer';
@ -117,6 +118,9 @@ export default function (view, params, tabContent) {
loading.show();
isLoading = true;
const query = getQuery();
const hasFilters = getFilterStatus(query);
setFilterStatus(context, hasFilters);
const apiClient = ApiClient;
query.UserId = apiClient.getCurrentUserId();
return apiClient.getLiveTvChannels(query).then(function (result) {