From e8acfcb733eee7ed834fb1a43d6fc0553abb0871 Mon Sep 17 00:00:00 2001
From: ArneBo
Date: Mon, 2 Jun 2025 00:22:16 +0200
Subject: [PATCH] refactor(front): use new ui components in track modal and
track-mobile-row, render track-modal only once in parent and populate with
data from mobile-row
---
.../src/components/audio/track/MobileRow.vue | 34 ++--
front/src/components/audio/track/Modal.vue | 190 ++++++++----------
front/src/components/audio/track/Table.vue | 21 ++
3 files changed, 119 insertions(+), 126 deletions(-)
diff --git a/front/src/components/audio/track/MobileRow.vue b/front/src/components/audio/track/MobileRow.vue
index fd299843f..cfb325aa6 100644
--- a/front/src/components/audio/track/MobileRow.vue
+++ b/front/src/components/audio/track/MobileRow.vue
@@ -12,9 +12,10 @@ import { useStore } from '~/store'
import usePlayOptions from '~/composables/audio/usePlayOptions'
import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
-import TrackModal from '~/components/audio/track/Modal.vue'
import { generateTrackCreditString } from '~/utils/utils'
+import Button from '~/components/ui/Button.vue'
+
interface Props extends PlayOptionsProps {
track: Track
index: number
@@ -113,8 +114,10 @@ const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.bu
/>
-
-
-
-
+