s/onBan/onBanOrUnban/

This commit is contained in:
David Baker 2017-02-14 17:29:40 +00:00
parent a1c990a2ea
commit 6fc70415cb

View file

@ -247,7 +247,7 @@ module.exports = WithMatrixClient(React.createClass({
}); });
}, },
onBan: function() { onBanOrUnban: function() {
const ConfirmUserActionDialog = sdk.getComponent("dialogs.ConfirmUserActionDialog"); const ConfirmUserActionDialog = sdk.getComponent("dialogs.ConfirmUserActionDialog");
Modal.createDialog(ConfirmUserActionDialog, { Modal.createDialog(ConfirmUserActionDialog, {
member: this.props.member, member: this.props.member,
@ -657,7 +657,7 @@ module.exports = WithMatrixClient(React.createClass({
} }
banButton = ( banButton = (
<AccessibleButton className="mx_MemberInfo_field" <AccessibleButton className="mx_MemberInfo_field"
onClick={this.onBan}> onClick={this.onBanOrUnban}>
{label} {label}
</AccessibleButton> </AccessibleButton>
); );