mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Hide Alphapicker when not sorting alphabetically (TV)
This commit is contained in:
parent
8900da42d8
commit
477ecfdc9f
1 changed files with 10 additions and 1 deletions
|
@ -198,7 +198,16 @@ import 'emby-itemscontainer';
|
||||||
|
|
||||||
function updateFilterControls(tabContent) {
|
function updateFilterControls(tabContent) {
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
self.alphaPicker.value(query.NameStartsWithOrGreater);
|
|
||||||
|
if (self.alphaPicker) {
|
||||||
|
self.alphaPicker.value(query.NameStartsWithOrGreater);
|
||||||
|
|
||||||
|
if (query.SortBy.indexOf('SortName') === 0) {
|
||||||
|
self.alphaPicker.visible(true);
|
||||||
|
} else {
|
||||||
|
self.alphaPicker.visible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue