mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
add collections tab for book libraries
This commit is contained in:
@@ -70,6 +70,11 @@ export const LibraryRoutes: LibraryRoute[] = [
|
||||
},
|
||||
{
|
||||
index: 5,
|
||||
label: 'Collections',
|
||||
view: LibraryTab.Collections
|
||||
},
|
||||
{
|
||||
index: 6,
|
||||
label: 'Favorites',
|
||||
view: LibraryTab.Favorites
|
||||
}
|
||||
|
||||
@@ -38,6 +38,14 @@ const genresTabContent: LibraryTabContent = {
|
||||
itemType: [BaseItemKind.AudioBook, BaseItemKind.Book]
|
||||
};
|
||||
|
||||
const collectionsTabContent: LibraryTabContent = {
|
||||
viewType: LibraryTab.Collections,
|
||||
collectionType: CollectionType.Books,
|
||||
itemType: [BaseItemKind.BoxSet],
|
||||
isBtnNewCollectionEnabled: true,
|
||||
noItemsMessage: 'MessageNoCollectionsAvailable'
|
||||
};
|
||||
|
||||
const favoritesTabContent: LibraryTabContent = {
|
||||
viewType: LibraryTab.Favorites,
|
||||
collectionType: CollectionType.Books,
|
||||
@@ -50,7 +58,8 @@ const booksTabMapping: LibraryTabMapping = {
|
||||
2: authorsTabContent,
|
||||
3: suggestionsTabContent,
|
||||
4: genresTabContent,
|
||||
5: favoritesTabContent
|
||||
5: collectionsTabContent,
|
||||
6: favoritesTabContent
|
||||
};
|
||||
|
||||
const Books: FC = () => {
|
||||
|
||||
Reference in New Issue
Block a user