simplify active track indicator

This commit is contained in:
Thomas Amland 2020-07-31 18:43:50 +02:00
parent 6ad7d8d33d
commit 4b2c3e778a
2 changed files with 2 additions and 4 deletions

View File

@ -18,13 +18,13 @@
<td class="pl-0 pr-0 text-center text-muted" style="min-width: 20px; max-width: 20px;">
<span class="track-status">
<template v-if="item.id === playingTrackId">
<Icon :icon="isPlaying ? 'volume-up-fill' : 'play-fill'"/>
<Icon :icon="isPlaying ? 'pause-fill' : 'play-fill'" class="text-primary"/>
</template>
<template v-else>{{ item.track || 1 }}</template>
</span>
<span class="track-status-hover">
<span v-if="item.id === playingTrackId" @click="playPause()">
<Icon :icon="isPlaying ? 'pause-fill' : 'play-fill'"/>
<Icon :icon="isPlaying ? 'pause-fill' : 'play-fill'" class="text-primary"/>
</span>
<span v-else @click="play(index)">
<Icon icon="play-fill"/>

View File

@ -10,7 +10,6 @@
BIconStarFill,
BIconCollectionFill,
BIconList,
BIconVolumeUpFill,
BIconPlayFill,
BIconPauseFill,
BIconSkipStartFill,
@ -30,7 +29,6 @@
BIconStarFill,
BIconCollectionFill,
BIconList,
BIconVolumeUpFill,
BIconPlayFill,
BIconPauseFill,
BIconSkipStartFill,