diff --git a/front/src/components/album/Card.vue b/front/src/components/album/Card.vue
index 042a27445..6b1d40c48 100644
--- a/front/src/components/album/Card.vue
+++ b/front/src/components/album/Card.vue
@@ -2,6 +2,10 @@
import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
+import PlayButton from '~/components/ui/button/Play.vue'
+import OptionsButton from '~/components/ui/button/Options.vue'
+import Card from '~/components/ui/Card.vue'
+import TagsList from '~/components/tags/List.vue'
import type { Album } from '~/types'
@@ -19,21 +23,24 @@ const { album } = props
let navigate = (to: 'artist' | 'album') => {}
+const artist_credit = album.artist_credit || []
+const firstArtist = artist_credit.length > 0 ? artist_credit[0].artist : null
+
if (import.meta.env.PROD) {
const router = useRouter()
navigate = (to: 'artist' | 'album') => to === 'album'
? router.push({ name: 'library.albums.detail', params: { id: album.id } })
- : router.push({ name: 'library.artists.detail', params: { id: album.artist_credit.artist.id } })
+ : router.push({ name: 'library.artists.detail', params: { id: firstArtist?.id } })
}
-
-
+
-
{{ t('components.audio.album.Card.meta.tracks', album.tracks?.length || 0) }}
-
+
-
+