mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add tag support to list view
This commit is contained in:
parent
f591296bfe
commit
d01cfa498b
3 changed files with 25 additions and 5 deletions
|
@ -284,7 +284,8 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
|
|||
Recursive: true,
|
||||
IsFavorite: params.IsFavorite === 'true' || null,
|
||||
ArtistIds: params.artistId || null,
|
||||
SortBy: sortBy
|
||||
SortBy: sortBy,
|
||||
Tags: params.tag || null
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -333,7 +334,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
|
|||
}
|
||||
|
||||
function getItem(params) {
|
||||
if (params.type === 'Recordings' || params.type === 'Programs' || params.type === 'nextup') {
|
||||
if ([ 'Recordings', 'Programs', 'nextup' ].includes(params.type) || params.tag) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
|
@ -726,6 +727,10 @@ class ItemsView {
|
|||
if (params.type === 'Video') {
|
||||
return globalize.translate('Videos');
|
||||
}
|
||||
|
||||
if (params.tag) {
|
||||
return params.tag;
|
||||
}
|
||||
}
|
||||
|
||||
function play() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue