mirror of https://github.com/vector-im/riot-web
Added new Invite button in the RHS footer which calls the new 'view_invite' action
parent
538b68a6b2
commit
ca1bb0f700
|
@ -373,6 +373,9 @@ module.exports = React.createClass({
|
|||
case 'view_create_chat':
|
||||
this._createChat();
|
||||
break;
|
||||
case 'view_invite':
|
||||
this._invite(payload.roomId);
|
||||
break;
|
||||
case 'notifier_enabled':
|
||||
this.forceUpdate();
|
||||
break;
|
||||
|
@ -516,6 +519,15 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
_invite: function() {
|
||||
var ChatInviteDialog = sdk.getComponent("dialogs.ChatInviteDialog");
|
||||
Modal.createDialog(ChatInviteDialog, {
|
||||
title: "Invite new room members",
|
||||
button: "Send Invites",
|
||||
description: "Who would you like to add to this room?"
|
||||
});
|
||||
},
|
||||
|
||||
// update scrollStateMap according to the current scroll state of the
|
||||
// room view.
|
||||
_updateScrollMap: function() {
|
||||
|
|
Loading…
Reference in New Issue