fix shuffle loading too big

This commit is contained in:
RenonDis 2018-07-12 16:04:11 +02:00 committed by Renon
parent f6a3ed5bb9
commit f3f4f709dc
1 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,7 @@
:title="labels.shuffle"
v-if="!showVolume"
class="two wide column control">
<div v-if="isShuffling" class="ui inline shuffling inverted small active loader"></div>
<div v-if="isShuffling" class="ui inline shuffling inverted tiny active loader"></div>
<i v-else @click="shuffle()" :class="['ui', 'random', 'secondary', {'disabled': queue.tracks.length === 0}, 'icon']" ></i>
</div>
<div class="one wide column" v-if="!showVolume"></div>
@ -195,7 +195,8 @@ export default {
updateProgress: 'player/updateProgress'
}),
shuffle () {
if (this.isShuffling) {
let disabled = this.queue.tracks.length === 0
if (this.isShuffling || disabled) {
return
}
let self = this