Compare commits
No commits in common. "fe3bdafb637651630ba3a53e456a3659738a297b" and "12ca71e6434c492c415b7c6907a9625f620a9026" have entirely different histories.
fe3bdafb63
...
12ca71e643
3 changed files with 5 additions and 7 deletions
|
@ -242,9 +242,7 @@ class Albums extends Pages {
|
|||
|
||||
const item = {
|
||||
...album.toJSON(),
|
||||
released: album.released
|
||||
? formatDate(album.released, "MM/dd/yyyy")
|
||||
: null,
|
||||
released: formatDate(album.released, "MM/dd/yyyy"),
|
||||
};
|
||||
|
||||
this.setPageContent("item", item);
|
||||
|
|
|
@ -175,10 +175,10 @@
|
|||
|
||||
let url = `/api/v1/albums?userId=${this.userId}&page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
|
||||
if ( this.artist ) {
|
||||
url += `&artists_sort=${this.artist.replace('&', '%26')}`;
|
||||
url += `&artists_sort=${this.artist}`;
|
||||
}
|
||||
if ( this.format ) {
|
||||
url += `&format=${this.format.replace('&', '%26')}`;
|
||||
url += `&format=${this.format}`;
|
||||
}
|
||||
if ( this.year ) {
|
||||
url += `&year=${this.year}`;
|
||||
|
|
|
@ -229,10 +229,10 @@
|
|||
|
||||
let url = `/api/v1/albums?page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
|
||||
if ( this.artist ) {
|
||||
url += `&artists_sort=${this.artist.replace('&', '%26')}`;
|
||||
url += `&artists_sort=${this.artist}`;
|
||||
}
|
||||
if ( this.format ) {
|
||||
url += `&format=${this.format.replace('&', '%26')}`;
|
||||
url += `&format=${this.format}`;
|
||||
}
|
||||
if ( this.year ) {
|
||||
url += `&year=${this.year}`;
|
||||
|
|
Loading…
Reference in a new issue