mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Merge pull request #8383 from theguymadmax/books-default-tab
Add default tab options for the Books library
This commit is contained in:
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user