You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
disableConfirmation -> confirm
This commit is contained in:
@ -32,7 +32,7 @@ module.exports = React.createClass({
|
||||
rowLabelClassName: React.PropTypes.string,
|
||||
rowInputClassName: React.PropTypes.string,
|
||||
buttonClassName: React.PropTypes.string,
|
||||
disableConfirmation: React.PropTypes.bool,
|
||||
confirm: React.PropTypes.bool,
|
||||
},
|
||||
|
||||
Phases: {
|
||||
@ -55,7 +55,8 @@ module.exports = React.createClass({
|
||||
error: "Passwords can't be empty"
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
confirm: true,
|
||||
};
|
||||
},
|
||||
|
||||
@ -68,7 +69,7 @@ module.exports = React.createClass({
|
||||
changePassword: function(oldPassword, newPassword) {
|
||||
const cli = MatrixClientPeg.get();
|
||||
|
||||
if (this.props.disableConfirmation) {
|
||||
if (!this.props.confirm) {
|
||||
this._changePassword(cli, oldPassword, newPassword);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user