diff --git a/front/src/components/audio/track/MobileRow.vue b/front/src/components/audio/track/MobileRow.vue index 2573ee237..0bf47794b 100644 --- a/front/src/components/audio/track/MobileRow.vue +++ b/front/src/components/audio/track/MobileRow.vue @@ -2,7 +2,7 @@ import type { Track, Artist, Album, Playlist, Library, Channel, Actor } from '~/types' import type { PlayOptionsProps } from '~/composables/audio/usePlayOptions' -import { ref, computed } from 'vue' +import { computed } from 'vue' import { useI18n } from 'vue-i18n' import { usePlayer } from '~/composables/audio/player' @@ -47,7 +47,9 @@ const props = withDefaults(defineProps(), { account: null }) -const showTrackModal = ref(false) +const emit = defineEmits<{ + (e: 'open-modal', track: Track, index: number): void +}>() const { currentTrack } = useQueue() const { isPlaying } = usePlayer() @@ -142,7 +144,7 @@ const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.bu 'mobile', { 'with-art': showArt }, ]" - @click.prevent.exact="$emit('open-modal', track, index)" + @click.prevent.exact="emit('open-modal', track, index)" />