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 { Track, Artist, Album, Playlist, Library, Channel, Actor } from '~/types'
|
||||||
import type { PlayOptionsProps } from '~/composables/audio/usePlayOptions'
|
import type { PlayOptionsProps } from '~/composables/audio/usePlayOptions'
|
||||||
|
|
||||||
import { ref, computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { usePlayer } from '~/composables/audio/player'
|
import { usePlayer } from '~/composables/audio/player'
|
||||||
|
@ -47,7 +47,9 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
account: null
|
account: null
|
||||||
})
|
})
|
||||||
|
|
||||||
const showTrackModal = ref(false)
|
const emit = defineEmits<{
|
||||||
|
(e: 'open-modal', track: Track, index: number): void
|
||||||
|
}>()
|
||||||
|
|
||||||
const { currentTrack } = useQueue()
|
const { currentTrack } = useQueue()
|
||||||
const { isPlaying } = usePlayer()
|
const { isPlaying } = usePlayer()
|
||||||
|
@ -142,7 +144,7 @@ const actionsButtonLabel = computed(() => t('components.audio.track.MobileRow.bu
|
||||||
'mobile',
|
'mobile',
|
||||||
{ 'with-art': showArt },
|
{ 'with-art': showArt },
|
||||||
]"
|
]"
|
||||||
@click.prevent.exact="$emit('open-modal', track, index)"
|
@click.prevent.exact="emit('open-modal', track, index)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue