mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Many UI and API Improvements (#8)
This fixes and implements many items on the ArtistIndex Page and ArtistDetailPage * Create ArtistStatistics Core Module and tie into API. * Create Members Class and tie into ArtistModel and Artist API resource. * Finish Out Album API resources and pass to ArtistDetailPage. * Finish Out Track and TrackFile API resources and pass to ArtistDetailPage. * Lots of UI work on Artist Detail Page to get Albums and Track list working. * Add Cover and Disc Image Types to MediaCover Class * Remove AddSeries UI Flow, since we have replaced with AddArtist (Cleanup)
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = PageableCollection.extend({
|
||||
this.artistId = options.artistId;
|
||||
},
|
||||
|
||||
bySeason : function(album) {
|
||||
byAlbum : function(album) {
|
||||
var filtered = this.filter(function(track) {
|
||||
return track.get('albumId') === album;
|
||||
});
|
||||
@@ -36,11 +36,11 @@ module.exports = PageableCollection.extend({
|
||||
var track2 = model2.get('trackNumber');
|
||||
|
||||
if (track1 < track2) {
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (track1 > track2) {
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user