Skip to content

Commit

Permalink
fix(default-theme): registration notifications (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Dziedzinski authored Mar 22, 2020
1 parent 0297504 commit 5cbbab8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/default-theme/components/SwRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ export default {
}
},
getErrorMessage() {
if (userError)
if (this.userError)
return 'Cannot create a new account, the user may already exist'
if (salutationsError)
if (this.salutationsError)
return "Couldn't fetch available salutations, please contact the administration."
if (countriesError)
if (this.countriesError)
return "Couldn't fetch available countries, please contact the administration."
}
},
Expand Down Expand Up @@ -281,6 +281,12 @@ export default {
}
}
.sw-register {
&__alert {
margin: var(--spacer-medium) 0;
}
}
.form {
&__input {
margin-bottom: var(--spacer-big);
Expand Down

0 comments on commit 5cbbab8

Please sign in to comment.