Merge branch 'fix-shuffle-loading' into 'develop'

fix shuffle loading too big

See merge request funkwhale/funkwhale!322
environments/review-front-funk-r3nlt8/deployments/28
Eliot Berriot 2018-07-13 12:57:38 +00:00
commit 309eb845e1
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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