Merge pull request #8383 from theguymadmax/books-default-tab

Add default tab options for the Books library
This commit is contained in:
Bill Thornton
2026-08-25 17:24:41 -04:00
committed by GitHub
@@ -246,6 +246,38 @@ function getLandingScreenOptions(type) {
value: LibraryTab.Playlists
}
);
} else if (type === 'books') {
list.push(
{
name: globalize.translate('Folders'),
value: LibraryTab.Folders,
isDefault: true
},
{
name: globalize.translate('Books'),
value: LibraryTab.Books
},
{
name: globalize.translate('Authors'),
value: LibraryTab.Authors
},
{
name: globalize.translate('Suggestions'),
value: LibraryTab.Suggestions
},
{
name: globalize.translate('Genres'),
value: LibraryTab.Genres
},
{
name: globalize.translate('Collections'),
value: LibraryTab.Collections
},
{
name: globalize.translate('Favorites'),
value: LibraryTab.Favorites
}
);
}
return list;
@@ -341,7 +373,7 @@ function getPerLibrarySettingsHtml(item, user, userSettings) {
html = `<div class="checkboxListContainer">${html}</div>`;
}
const landingScreenTypes = ['movies', 'tvshows', 'music', 'livetv', 'homevideos', 'musicvideos', 'mixed'];
const landingScreenTypes = ['movies', 'tvshows', 'music', 'livetv', 'homevideos', 'musicvideos', 'mixed', 'books'];
if (landingScreenTypes.includes(collectionType)) {
const idForLanding = collectionType === 'livetv' ? collectionType : item.Id;
html += '<div class="selectContainer">';