mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add person to favorite section
This commit is contained in:
parent
08f249b007
commit
e8af133ed2
1 changed files with 15 additions and 0 deletions
|
@ -74,6 +74,17 @@ define(["appRouter", "cardBuilder", "dom", "globalize", "connectionManager", "ap
|
||||||
centerText: true,
|
centerText: true,
|
||||||
overlayPlayButton: true,
|
overlayPlayButton: true,
|
||||||
coverImage: true
|
coverImage: true
|
||||||
|
}, {
|
||||||
|
name: "HeaderFavoritePeople",
|
||||||
|
types: "Person",
|
||||||
|
shape: getPosterShape(),
|
||||||
|
preferThumb: false,
|
||||||
|
showTitle: true,
|
||||||
|
overlayText: false,
|
||||||
|
showParentTitle: false,
|
||||||
|
centerText: true,
|
||||||
|
overlayPlayButton: true,
|
||||||
|
coverImage: true
|
||||||
}, {
|
}, {
|
||||||
name: "HeaderFavoriteArtists",
|
name: "HeaderFavoriteArtists",
|
||||||
types: "MusicArtist",
|
types: "MusicArtist",
|
||||||
|
@ -140,6 +151,10 @@ define(["appRouter", "cardBuilder", "dom", "globalize", "connectionManager", "ap
|
||||||
return apiClient.getArtists(userId, options);
|
return apiClient.getArtists(userId, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("Person" === section.types) {
|
||||||
|
return apiClient.getPeople(userId, options);
|
||||||
|
}
|
||||||
|
|
||||||
options.IncludeItemTypes = section.types;
|
options.IncludeItemTypes = section.types;
|
||||||
return apiClient.getItems(userId, options);
|
return apiClient.getItems(userId, options);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue