disableConfirmation -> confirm
This commit is contained in:
parent
f7e6a996c5
commit
5a3c32044e
1 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ module.exports = React.createClass({
|
||||||
rowLabelClassName: React.PropTypes.string,
|
rowLabelClassName: React.PropTypes.string,
|
||||||
rowInputClassName: React.PropTypes.string,
|
rowInputClassName: React.PropTypes.string,
|
||||||
buttonClassName: React.PropTypes.string,
|
buttonClassName: React.PropTypes.string,
|
||||||
disableConfirmation: React.PropTypes.bool,
|
confirm: React.PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
Phases: {
|
Phases: {
|
||||||
|
@ -55,7 +55,8 @@ module.exports = React.createClass({
|
||||||
error: "Passwords can't be empty"
|
error: "Passwords can't be empty"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
confirm: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -68,7 +69,7 @@ module.exports = React.createClass({
|
||||||
changePassword: function(oldPassword, newPassword) {
|
changePassword: function(oldPassword, newPassword) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
||||||
if (this.props.disableConfirmation) {
|
if (!this.props.confirm) {
|
||||||
this._changePassword(cli, oldPassword, newPassword);
|
this._changePassword(cli, oldPassword, newPassword);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue