Skip to content
Snippets Groups Projects
Commit f3f4f709 authored by R En's avatar R En Committed by R En
Browse files

fix shuffle loading too big

parent f6a3ed5b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment