From 5b023b4424cda87bb9df1cf3e639f689306cf883 Mon Sep 17 00:00:00 2001
From: ArneBo <arne@ecobasa.org>
Date: Fri, 25 Oct 2024 11:55:15 +0200
Subject: [PATCH] Add support for multiple artists per album

---
 src/components/card/album/Card.vue | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/components/card/album/Card.vue b/src/components/card/album/Card.vue
index 6e97b1b..aa547ca 100644
--- a/src/components/card/album/Card.vue
+++ b/src/components/card/album/Card.vue
@@ -1,4 +1,4 @@
-<script setup lang="ts">
+"your-package": "file:/packages/your-local-package""your-package": "file:/packages/your-local-package"<script setup lang="ts">
 import { FwCard, FwPlayButton, FwOptionsButton } from '~/components'
 import { useRouter } from 'vue-router'
 import { useI18n } from 'vue-i18n'
@@ -30,10 +30,13 @@ if (import.meta.env.PROD) {
     <fw-play-button @play="play(album)" />
 
     <a
-      @click.stop="navigate('artist')"
-      class="funkwhale link"
-    >
-      {{ album.artist.name }}
+    v-for="ac in album.artistCredit"
+    :key="ac.artist.id"
+    @click.stop="navigate('artist')"
+    class="funkwhale link"
+  >
+    {{ ac.credit ?? t('components.Queue.meta.unknownArtist') }}
+    {{ ac.joinphrase }}
     </a>
 
     <template #footer>
@@ -45,4 +48,4 @@ if (import.meta.env.PROD) {
 
 <style lang="scss">
 @import './style.scss'
-</style>
+</style>
\ No newline at end of file
-- 
GitLab