mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
renaming
This commit is contained in:
@@ -61,7 +61,7 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
createUserComponentsAreValid = () => {
|
createUserComponentsAreInvalid = () => {
|
||||||
const user = this.state.user;
|
const user = this.state.user;
|
||||||
if (!this.props.user) {
|
if (!this.props.user) {
|
||||||
return (
|
return (
|
||||||
@@ -74,7 +74,7 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
editUserComponentsAreChanged = () => {
|
editUserComponentsAreUnchanged = () => {
|
||||||
const user = this.state.user;
|
const user = this.state.user;
|
||||||
if (this.props.user) {
|
if (this.props.user) {
|
||||||
return (
|
return (
|
||||||
@@ -91,8 +91,8 @@ class UserForm extends React.Component<Props, State> {
|
|||||||
isValid = () => {
|
isValid = () => {
|
||||||
const user = this.state.user;
|
const user = this.state.user;
|
||||||
return !(
|
return !(
|
||||||
this.createUserComponentsAreValid() ||
|
this.createUserComponentsAreInvalid() ||
|
||||||
this.editUserComponentsAreChanged() ||
|
this.editUserComponentsAreUnchanged() ||
|
||||||
this.state.mailValidationError ||
|
this.state.mailValidationError ||
|
||||||
this.state.displayNameValidationError ||
|
this.state.displayNameValidationError ||
|
||||||
this.isFalsy(user.displayName) ||
|
this.isFalsy(user.displayName) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user