From 6fc70415cb4defa3c9cd5090d0993c470694fa84 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 14 Feb 2017 17:29:40 +0000 Subject: [PATCH] s/onBan/onBanOrUnban/ --- src/components/views/rooms/MemberInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index babffb9a02..699ee8a3a2 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -247,7 +247,7 @@ module.exports = WithMatrixClient(React.createClass({ }); }, - onBan: function() { + onBanOrUnban: function() { const ConfirmUserActionDialog = sdk.getComponent("dialogs.ConfirmUserActionDialog"); Modal.createDialog(ConfirmUserActionDialog, { member: this.props.member, @@ -657,7 +657,7 @@ module.exports = WithMatrixClient(React.createClass({ } banButton = ( + onClick={this.onBanOrUnban}> {label} );