mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
make edit user saveable again
This commit is contained in:
@@ -63,14 +63,19 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
|
|
||||||
isValid = () => {
|
isValid = () => {
|
||||||
const user = this.state.user;
|
const user = this.state.user;
|
||||||
|
|
||||||
|
const createUserIsValid = !this.props.user
|
||||||
|
? this.state.nameValidationError ||
|
||||||
|
this.isFalsy(user.name) ||
|
||||||
|
!this.state.passwordValid
|
||||||
|
: false;
|
||||||
|
|
||||||
return !(
|
return !(
|
||||||
this.state.nameValidationError ||
|
createUserIsValid ||
|
||||||
this.state.mailValidationError ||
|
this.state.mailValidationError ||
|
||||||
this.state.displayNameValidationError ||
|
this.state.displayNameValidationError ||
|
||||||
this.isFalsy(user.name) ||
|
|
||||||
this.isFalsy(user.displayName) ||
|
this.isFalsy(user.displayName) ||
|
||||||
this.isFalsy(user.mail) ||
|
this.isFalsy(user.mail)
|
||||||
!this.state.passwordValid
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user