Compare commits
No commits in common. "cc25b83b2e52e5bda582b4f775aaa883bf125322" and "06752ebcec9213b73d416f5ca628af282b589df9" have entirely different histories.
cc25b83b2e
...
06752ebcec
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