From 7d3a6e77e4fd8c79a21a3ad9b9b9128698c9fa3d Mon Sep 17 00:00:00 2001
From: Alexander Gitter <contact@agitter.net>
Date: Sun, 13 Nov 2016 18:26:10 +0100
Subject: Show spinner while uploading file

---
 src/components/media_upload/media_upload.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/media_upload/media_upload.vue')

diff --git a/src/components/media_upload/media_upload.vue b/src/components/media_upload/media_upload.vue
index a62d8316..f2f0b83f 100644
--- a/src/components/media_upload/media_upload.vue
+++ b/src/components/media_upload/media_upload.vue
@@ -1,7 +1,8 @@
 <template>
   <div class="media-upload">
     <label class="btn btn-default">
-      <i class="fa icon-upload"></i>
+      <i class="fa icon-spin4 animate-spin" v-if="uploading"></i>
+      <i class="fa icon-upload" v-if="!uploading"></i>
       <input type=file style="position: fixed; top: -100em"></input>
     </label>
   </div>
-- 
cgit v1.2.3-70-g09d2

