From 25a04f2294a4ed4d9cf527d8ee2d2899400447dd Mon Sep 17 00:00:00 2001
From: Rinpatch <rinpatch@sdf.org>
Date: Tue, 11 Dec 2018 16:02:35 +0300
Subject: Avatar, background, banner filesize errors

---
 src/components/user_settings/user_settings.vue | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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

diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue
index 234a7d86..12bc953e 100644
--- a/src/components/user_settings/user_settings.vue
+++ b/src/components/user_settings/user_settings.vue
@@ -43,6 +43,10 @@
             </div>
             <i class="icon-spin4 animate-spin" v-if="uploading[0]"></i>
             <button class="btn btn-default" v-else-if="previews[0]" @click="submitAvatar">{{$t('general.submit')}}</button>
+            <div class='alert error' v-if="avataruploaderror">
+              Error: {{ avataruploaderror }}
+              <i class="icon-cancel" @click="clearUploadError(0)"></i>
+            </div>
           </div>
           <div class="setting-item">
             <h2>{{$t('settings.profile_banner')}}</h2>
@@ -56,6 +60,10 @@
             </div>
             <i class=" icon-spin4 animate-spin uploading" v-if="uploading[1]"></i>
             <button class="btn btn-default" v-else-if="previews[1]" @click="submitBanner">{{$t('general.submit')}}</button>
+            <div class='alert error' v-if="banneruploaderror">
+              Error: {{ banneruploaderror }}
+              <i class="icon-cancel" @click="clearUploadError(1)"></i>
+            </div>
           </div>
           <div class="setting-item">
             <h2>{{$t('settings.profile_background')}}</h2>
@@ -67,6 +75,10 @@
             </div>
             <i class=" icon-spin4 animate-spin uploading" v-if="uploading[2]"></i>
             <button class="btn btn-default" v-else-if="previews[2]" @click="submitBg">{{$t('general.submit')}}</button>
+            <div class='alert error' v-if="backgrounduploaderror">
+              Error: {{ backgrounduploaderror }}
+              <i class="icon-cancel" @click="clearUploadError(2)"></i>
+            </div>
           </div>
         </div>
 
-- 
cgit v1.2.3-70-g09d2

