diff --git a/scm-ui-components/packages/ui-components/src/forms/PasswordConfirmation.js b/scm-ui-components/packages/ui-components/src/forms/PasswordConfirmation.js index b0f53cddeb..4bb05495af 100644 --- a/scm-ui-components/packages/ui-components/src/forms/PasswordConfirmation.js +++ b/scm-ui-components/packages/ui-components/src/forms/PasswordConfirmation.js @@ -1,7 +1,7 @@ // @flow import React from "react"; -import {translate} from "react-i18next"; +import { translate } from "react-i18next"; import InputField from "./InputField"; type State = { @@ -40,26 +40,30 @@ class PasswordConfirmation extends React.Component { render() { const { t } = this.props; return ( - <> - - - +
+
+ +
+
+ +
+
); } @@ -99,7 +103,7 @@ class PasswordConfirmation extends React.Component { }; isValid = () => { - return this.state.passwordValid && !this.state.passwordConfirmationFailed + return this.state.passwordValid && !this.state.passwordConfirmationFailed; }; propagateChange = () => { diff --git a/scm-ui/src/containers/ChangeUserPassword.js b/scm-ui/src/containers/ChangeUserPassword.js index 28a7af588a..fe687d0e57 100644 --- a/scm-ui/src/containers/ChangeUserPassword.js +++ b/scm-ui/src/containers/ChangeUserPassword.js @@ -110,30 +110,42 @@ class ChangeUserPassword extends React.Component { return (
{message} - - this.setState({ ...this.state, oldPassword }) - } - value={this.state.oldPassword ? this.state.oldPassword : ""} - helpText={t("password.currentPasswordHelpText")} - /> +
+
+ + this.setState({ ...this.state, oldPassword }) + } + value={this.state.oldPassword ? this.state.oldPassword : ""} + helpText={t("password.currentPasswordHelpText")} + /> +
+
- +
+
+ +
+
); } passwordChanged = (password: string, passwordValid: boolean) => { - this.setState({ ...this.state, password, passwordValid: (!!password && passwordValid) }); + this.setState({ + ...this.state, + password, + passwordValid: !!password && passwordValid + }); }; onClose = () => { diff --git a/scm-ui/src/users/components/SetUserPassword.js b/scm-ui/src/users/components/SetUserPassword.js index a0fe844b0c..0409bf5d2b 100644 --- a/scm-ui/src/users/components/SetUserPassword.js +++ b/scm-ui/src/users/components/SetUserPassword.js @@ -105,17 +105,25 @@ class SetUserPassword extends React.Component { passwordChanged={this.passwordChanged} key={this.state.passwordChanged ? "changed" : "unchanged"} /> - +
+
+ +
+
); } passwordChanged = (password: string, passwordValid: boolean) => { - this.setState({ ...this.state, password, passwordValid: (!!password && passwordValid) }); + this.setState({ + ...this.state, + password, + passwordValid: !!password && passwordValid + }); }; onClose = () => { diff --git a/scm-ui/src/users/components/UserForm.js b/scm-ui/src/users/components/UserForm.js index c473e92322..ce1474a920 100644 --- a/scm-ui/src/users/components/UserForm.js +++ b/scm-ui/src/users/components/UserForm.js @@ -162,9 +162,9 @@ class UserForm extends React.Component { /> + {passwordChangeField}
- {passwordChangeField}