mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix-LiveTV-Default Tab index
This commit is contained in:
parent
3a243aae1d
commit
866c58212c
1 changed files with 13 additions and 4 deletions
|
@ -200,11 +200,20 @@ function setScrollClasses(elem, scrollX) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultTabIndex(folderId) {
|
function getDefaultTabIndex(folderId) {
|
||||||
if (userSettings.get('landing-' + folderId) === 'guide') {
|
switch (userSettings.get('landing-' + folderId)) {
|
||||||
return 1;
|
case 'guide':
|
||||||
|
return 1;
|
||||||
|
case 'channels':
|
||||||
|
return 2;
|
||||||
|
case 'recordings':
|
||||||
|
return 3;
|
||||||
|
case 'schedule':
|
||||||
|
return 4;
|
||||||
|
case 'series':
|
||||||
|
return 5;
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function (view, params) {
|
export default function (view, params) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue