diff --git a/front/src/components/artist/Card.vue b/front/src/components/artist/Card.vue index dd170d739..372d7dbfa 100644 --- a/front/src/components/artist/Card.vue +++ b/front/src/components/artist/Card.vue @@ -1,16 +1,12 @@ @@ -76,7 +57,7 @@ const cover = computed(() => { @@ -99,7 +80,7 @@ const cover = computed(() => { diff --git a/front/src/components/audio/ArtistCreditLabel.vue b/front/src/components/audio/ArtistCreditLabel.vue index 4b634ff37..c0ea32e57 100644 --- a/front/src/components/audio/ArtistCreditLabel.vue +++ b/front/src/components/audio/ArtistCreditLabel.vue @@ -32,8 +32,8 @@ const getRoute = (ac: ArtistCredit) => { :to="getRoute(ac)" > diff --git a/front/src/components/audio/ArtistLabel.vue b/front/src/components/audio/ArtistLabel.vue index e7244f805..254fb9866 100644 --- a/front/src/components/audio/ArtistLabel.vue +++ b/front/src/components/audio/ArtistLabel.vue @@ -24,8 +24,8 @@ const route = computed(() => props.artist.channel :to="route" > diff --git a/front/src/components/audio/artist/Card.vue b/front/src/components/audio/artist/Card.vue index b31a27b75..dcafe8656 100644 --- a/front/src/components/audio/artist/Card.vue +++ b/front/src/components/audio/artist/Card.vue @@ -17,9 +17,9 @@ const { t } = useI18n() const props = defineProps() -const cover = computed(() => !props.artist.cover?.urls.original +const cover = computed(() => !props.artist.attachment_cover?.urls.original ? props.artist.albums.find(album => !!album.cover?.urls.original)?.cover - : props.artist.cover + : props.artist.attachment_cover ) const store = useStore() diff --git a/front/src/components/audio/track/Modal.vue b/front/src/components/audio/track/Modal.vue index 39e1a6fe8..f0ffc3cc2 100644 --- a/front/src/components/audio/track/Modal.vue +++ b/front/src/components/audio/track/Modal.vue @@ -114,7 +114,7 @@ const labels = computed(() => ({ class="ui centered image" > diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 024239fdd..3efc44c2b 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -165,10 +165,10 @@ const remove = async () => { class="channel-image" > { src="../../assets/audio/default-cover.png" > - +

{{ object.title }}

+
{ > {{ labels.shuffle }} + + {{ t('components.library.AlbumDropdown.button.delete') }} + diff --git a/front/src/components/library/ArtistBase.vue b/front/src/components/library/ArtistBase.vue index 2c2428961..f7b8df75d 100644 --- a/front/src/components/library/ArtistBase.vue +++ b/front/src/components/library/ArtistBase.vue @@ -59,16 +59,14 @@ const publicLibraries = computed(() => libraries.value?.filter(library => librar const cover = computed(() => { - const artistCover: Cover | undefined = object.value?.cover + const artistCover: Cover | undefined = object.value?.attachment_cover const albumCover: Cover | undefined = object.value?.albums .find(album => album.cover?.urls.large_square_crop)?.cover - const trackCover: Cover | undefined = - tracks.value?.find( - track => track.cover - ) - ?.cover + const trackCover = tracks.value?.find( + (track: Track) => track.cover + )?.cover const fallback : Cover = { uuid: '', diff --git a/front/src/composables/audio/queue.ts b/front/src/composables/audio/queue.ts index 108eeddaf..8fde87bf8 100644 --- a/front/src/composables/audio/queue.ts +++ b/front/src/composables/audio/queue.ts @@ -125,7 +125,7 @@ export const useQueue = createGlobalState(() => { coverUrl: ( (track.cover?.urls) || (track.album?.cover?.urls) - || ((track.artist_credit && track.artist_credit[0] && track.artist_credit[0].artist && track.artist_credit[0].artist.cover?.urls)) + || ((track.artist_credit && track.artist_credit[0] && track.artist_credit[0].artist && track.artist_credit[0].artist.attachment_cover?.urls)) || {} )?.original ?? new URL('../../assets/audio/default-cover.png', import.meta.url).href, sources: track.uploads.map(upload => ({