Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: https://git.darkou.fr/dbroqua/MusicTopus/pulls/34
This commit is contained in:
parent
4886e9cc48
commit
9a088b9b5f
9 changed files with 28 additions and 1 deletions
|
@ -641,6 +641,7 @@ class Albums extends Pages {
|
|||
|
||||
this.setPageContent("artists", artists);
|
||||
this.setPageContent("formats", formats);
|
||||
this.setPageTitle("Ma collection");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -655,6 +656,9 @@ class Albums extends Pages {
|
|||
});
|
||||
|
||||
this.setPageContent("item", item);
|
||||
this.setPageTitle(
|
||||
`Détails de l'album ${item.title} de ${item.artists_sort}`
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -676,6 +680,7 @@ class Albums extends Pages {
|
|||
const formats = await Albums.getAllDistincts("formats.name", userId);
|
||||
|
||||
this.setPageContent("username", user.username);
|
||||
this.setPageTitle(`Collection publique de ${user.username}`);
|
||||
this.setPageContent("artists", artists);
|
||||
this.setPageContent("formats", formats);
|
||||
}
|
||||
|
|
|
@ -34,6 +34,10 @@ class Pages {
|
|||
}
|
||||
}
|
||||
|
||||
setPageTitle(title) {
|
||||
this.pageContent.page.title = title;
|
||||
}
|
||||
|
||||
setPageContent(field, value) {
|
||||
this.pageContent.page[field] = value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue