From bf8bb9ce134c8712885e52d005c6d130fca4e553 Mon Sep 17 00:00:00 2001
From: Rinpatch <rinpatch@sdf.org>
Date: Wed, 12 Dec 2018 16:38:01 +0300
Subject: Moved upload errors in user_settings to an array. Moved upload error
 strings to its separate section in i18n

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

(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 12bc953e..22c4fe41 100644
--- a/src/components/user_settings/user_settings.vue
+++ b/src/components/user_settings/user_settings.vue
@@ -43,8 +43,8 @@
             </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 }}
+            <div class='alert error' v-if="uploaderror[0]">
+              Error: {{ uploaderror[0] }}
               <i class="icon-cancel" @click="clearUploadError(0)"></i>
             </div>
           </div>
@@ -60,8 +60,8 @@
             </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 }}
+            <div class='alert error' v-if="uploaderror[1]">
+              Error: {{ uploaderror[1] }}
               <i class="icon-cancel" @click="clearUploadError(1)"></i>
             </div>
           </div>
@@ -75,8 +75,8 @@
             </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 }}
+            <div class='alert error' v-if="uploaderror[2]">
+              Error: {{ uploaderror[2] }}
               <i class="icon-cancel" @click="clearUploadError(2)"></i>
             </div>
           </div>
-- 
cgit v1.2.3-70-g09d2

