diff options
| author | raeno <just.raeno@gmail.com> | 2018-12-03 22:43:58 +0400 |
|---|---|---|
| committer | raeno <just.raeno@gmail.com> | 2018-12-05 13:44:12 +0400 |
| commit | 822559afd889262f0dc6989531a54a21a01beadc (patch) | |
| tree | b316419db2ab6fa7403398f6e013fef826e1d006 /src/components/registration/registration.vue | |
| parent | 3fa9b39150c318972511882239304bc08f6f57ad (diff) | |
Humanize validation errors returned on registration
Diffstat (limited to 'src/components/registration/registration.vue')
| -rw-r--r-- | src/components/registration/registration.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index 087cab6b..867e26f0 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -49,8 +49,10 @@ <div class='terms-of-service' v-html="termsofservice"> </div> </div> - <div v-if="error" class='form-group'> - <div class='alert error'>{{error}}</div> + <div v-if="errors.length" class='form-group'> + <div class='alert error'> + <span v-for="error in errors">{{error}}</span> + </div> </div> </form> </div> |
