mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Fixed: Display last/next monitored albums for artists
This commit is contained in:
parent
eb04673040
commit
a52c6f6f41
8 changed files with 17 additions and 18 deletions
|
@ -10,6 +10,7 @@ export interface Statistics {
|
|||
}
|
||||
|
||||
interface Album extends ModelBase {
|
||||
artistId: number;
|
||||
artist: Artist;
|
||||
foreignAlbumId: string;
|
||||
title: string;
|
||||
|
|
|
@ -4,10 +4,11 @@ import Link from 'Components/Link/Link';
|
|||
|
||||
function AlbumTitleLink({ foreignAlbumId, title, disambiguation }) {
|
||||
const link = `/album/${foreignAlbumId}`;
|
||||
const albumTitle = `${title}${disambiguation ? ` (${disambiguation})` : ''}`;
|
||||
|
||||
return (
|
||||
<Link to={link}>
|
||||
{title}{disambiguation ? ` (${disambiguation})` : ''}
|
||||
<Link to={link} title={albumTitle}>
|
||||
{albumTitle}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ export interface Ratings {
|
|||
|
||||
interface Artist extends ModelBase {
|
||||
added: string;
|
||||
artistMetadataId: string;
|
||||
foreignArtistId: string;
|
||||
cleanName: string;
|
||||
ended: boolean;
|
||||
|
|
|
@ -11,7 +11,7 @@ function createArtistAlbumsSelector(artistId: number) {
|
|||
const { isFetching, isPopulated, error, items } = albums;
|
||||
|
||||
const filteredAlbums = items.filter(
|
||||
(album) => album.artist.artistMetadataId === artist.artistMetadataId
|
||||
(album) => album.artistId === artist.id
|
||||
);
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue