mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add tag type for list view
This commit is contained in:
parent
d01cfa498b
commit
b11f4fa4b1
2 changed files with 4 additions and 4 deletions
|
@ -674,7 +674,7 @@ class AppRouter {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item === 'tag') {
|
if (item === 'tag') {
|
||||||
url = `#/list.html?tag=${encodeURIComponent(options.tag)}&serverId=${serverId}`;
|
url = `#/list.html?type=tag&tag=${encodeURIComponent(options.tag)}&serverId=${serverId}`;
|
||||||
|
|
||||||
if (options.parentId) {
|
if (options.parentId) {
|
||||||
url += '&parentId=' + options.parentId;
|
url += '&parentId=' + options.parentId;
|
||||||
|
|
|
@ -334,7 +334,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getItem(params) {
|
function getItem(params) {
|
||||||
if ([ 'Recordings', 'Programs', 'nextup' ].includes(params.type) || params.tag) {
|
if ([ 'Recordings', 'Programs', 'nextup', 'tag' ].includes(params.type)) {
|
||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1208,7 +1208,7 @@ class ItemsView {
|
||||||
showTitle = true;
|
showTitle = true;
|
||||||
} else if (showTitle === 'false') {
|
} else if (showTitle === 'false') {
|
||||||
showTitle = false;
|
showTitle = false;
|
||||||
} else if (params.type === 'Programs' || params.type === 'Recordings' || params.type === 'Person' || params.type === 'nextup' || params.type === 'Audio' || params.type === 'MusicAlbum' || params.type === 'MusicArtist') {
|
} else if ([ 'Audio', 'MusicAlbum', 'MusicArtist', 'Person', 'Programs', 'Recordings', 'nextup', 'tag' ].includes(params.type)) {
|
||||||
showTitle = true;
|
showTitle = true;
|
||||||
} else if (item && item.Type !== 'PhotoAlbum') {
|
} else if (item && item.Type !== 'PhotoAlbum') {
|
||||||
showTitle = true;
|
showTitle = true;
|
||||||
|
@ -1225,7 +1225,7 @@ class ItemsView {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
showTitle: showTitle,
|
showTitle,
|
||||||
showYear: userSettings.get(basekey + '-showYear') !== 'false',
|
showYear: userSettings.get(basekey + '-showYear') !== 'false',
|
||||||
imageType: imageType || 'primary',
|
imageType: imageType || 'primary',
|
||||||
viewType: userSettings.get(basekey + '-viewType') || 'images'
|
viewType: userSettings.get(basekey + '-viewType') || 'images'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue