fix(lint): remove unused modal const, define Emit
This commit is contained in:
parent
68bfc91529
commit
41d8ecedd8
|
@ -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<Props>(), {
|
|||
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)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue