diff --git a/src/components/homeScreenSettings/homeScreenSettings.js b/src/components/homeScreenSettings/homeScreenSettings.js index bb7093a514..1a85ed5a6b 100644 --- a/src/components/homeScreenSettings/homeScreenSettings.js +++ b/src/components/homeScreenSettings/homeScreenSettings.js @@ -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 = `
${html}
`; } - 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 += '
';