mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
responsive login, profile new UX
This commit is contained in:
parent
2ba948bc82
commit
68f5008a52
7 changed files with 32 additions and 47 deletions
|
@ -20,7 +20,10 @@ export default Component.extend(AuthProvider, {
|
|||
password: { password: "", confirmation: "" },
|
||||
hasFirstnameError: empty('model.firstname'),
|
||||
hasLastnameError: empty('model.lastname'),
|
||||
hasEmailError: empty('model.email'),
|
||||
hasEmailError: computed('model.email', function() {
|
||||
let email = this.get('model.email');
|
||||
return isEmpty(email) || is.not.email(email);
|
||||
}),
|
||||
hasPasswordError: computed('passwordError', 'password.password', {
|
||||
get() {
|
||||
if (isPresent(this.get('passwordError'))) {
|
||||
|
@ -35,10 +38,10 @@ export default Component.extend(AuthProvider, {
|
|||
hasConfirmPasswordError: computed('confirmPasswordError', {
|
||||
get() {
|
||||
if (isPresent(this.get("confirmPasswordError"))) {
|
||||
return `error`;
|
||||
return `is-invalid`;
|
||||
}
|
||||
|
||||
return;
|
||||
return '';
|
||||
}
|
||||
}),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue