From f3f4f709dc2be3c7dd03abf996dc5baa7d80e5fa Mon Sep 17 00:00:00 2001
From: RenonDis <renon@disroot.org>
Date: Thu, 12 Jul 2018 16:04:11 +0200
Subject: [PATCH] fix shuffle loading too big

---
 front/src/components/audio/Player.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue
index b9c40224..84b07620 100644
--- a/front/src/components/audio/Player.vue
+++ b/front/src/components/audio/Player.vue
@@ -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
-- 
GitLab