mirror of https://github.com/vector-im/riot-web
Merge pull request #15 from matrix-org/erikj/room_editing
Show banned users in room settingspull/1/head
commit
ed738b6398
|
@ -124,6 +124,8 @@ module.exports = React.createClass({
|
|||
var can_change_levels = false;
|
||||
}
|
||||
|
||||
var banned = this.props.room.getMembersWithMemership("ban");
|
||||
|
||||
return (
|
||||
<div className="mx_RoomSettings">
|
||||
<textarea placeholder="Description" defaultValue={topic} ref="topic"/> <br/>
|
||||
|
@ -194,6 +196,17 @@ module.exports = React.createClass({
|
|||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
Banned users:
|
||||
<div className="mx_RoomSettings_banned">
|
||||
{banned.map(function(member, i) {
|
||||
return (
|
||||
<div key={i}>
|
||||
{member.userId}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue