mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
refactor interfaces and references
This commit is contained in:
committed by
Mungai Njoroge
parent
4a49d48011
commit
6d8a9f880b
@@ -68,12 +68,13 @@ export default defineStore("album", {
|
||||
this.info = album.info;
|
||||
},
|
||||
async fetchArtistAlbums() {
|
||||
const albumartist = this.info.albumartist;
|
||||
const cardWidth = 8 * 16;
|
||||
const albumartists = this.info.albumartists;
|
||||
const cardWidth = 10 * 16;
|
||||
const visible_cards = Math.floor(content_width.value / cardWidth);
|
||||
const albumartisthashes = albumartists.map((artist) => artist.hash);
|
||||
|
||||
this.albumArtists = await getAlbumsFromArtist(
|
||||
albumartist,
|
||||
albumartisthashes.join(),
|
||||
visible_cards,
|
||||
this.info.albumhash
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user