Merge pull request #1094 from matrix-org/dbkr/enter_submits_changepassword
Make enter submit change password form
This commit is contained in:
commit
602255f92c
1 changed files with 2 additions and 2 deletions
|
@ -223,7 +223,7 @@ module.exports = React.createClass({
|
||||||
const passwordLabel = this.state.cachedPassword ?
|
const passwordLabel = this.state.cachedPassword ?
|
||||||
_t('Password') : _t('New Password');
|
_t('Password') : _t('New Password');
|
||||||
return (
|
return (
|
||||||
<div className={this.props.className}>
|
<form className={this.props.className} onSubmit={this.onClickChange}>
|
||||||
{ currentPassword }
|
{ currentPassword }
|
||||||
<div className={rowClassName}>
|
<div className={rowClassName}>
|
||||||
<div className={rowLabelClassName}>
|
<div className={rowLabelClassName}>
|
||||||
|
@ -246,7 +246,7 @@ module.exports = React.createClass({
|
||||||
element="button">
|
element="button">
|
||||||
{ _t('Change Password') }
|
{ _t('Change Password') }
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
</div>
|
</form>
|
||||||
);
|
);
|
||||||
case this.Phases.Uploading:
|
case this.Phases.Uploading:
|
||||||
var Loader = sdk.getComponent("elements.Spinner");
|
var Loader = sdk.getComponent("elements.Spinner");
|
||||||
|
|
Loading…
Reference in a new issue