You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-04 23:02:14 +03:00
disableConfirmation -> confirm
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user