Added new Invite button in the RHS footer
This commit is contained in:
parent
acdcb21830
commit
768f11fe58
2 changed files with 37 additions and 0 deletions
|
@ -109,6 +109,14 @@ module.exports = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
onInviteButtonClick: function() {
|
||||
// call ChatInviteDialog
|
||||
dis.dispatch({
|
||||
action: 'view_invite',
|
||||
roomId: this.props.roomId,
|
||||
});
|
||||
},
|
||||
|
||||
onRoomStateMember: function(ev, state, member) {
|
||||
// redraw the badge on the membership list
|
||||
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
|
||||
|
@ -236,6 +244,12 @@ module.exports = React.createClass({
|
|||
</div>
|
||||
{ panel }
|
||||
<div className="mx_RightPanel_footer">
|
||||
<div className="mx_RightPanel_invite" >
|
||||
<div className="mx_RightPanel_icon" onClick={ this.onInviteButtonClick } >
|
||||
<TintableSvg src="img/icons-settings.svg" width="35" height="35" />
|
||||
</div>
|
||||
<div className="mx_RightPanel_message">Invite to this room</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue