- );
- }
- },
-
render: function() {
+ var InviteMemberList = sdk.getComponent("rooms.InviteMemberList");
+
var invitedSection = null;
var invitedMemberTiles = this.makeMemberTiles('invite', this.state.searchQuery);
if (invitedMemberTiles.length > 0) {
@@ -444,10 +377,27 @@ module.exports = React.createClass({
);
}
+
+ var inviteMemberListSection;
+ if (this.state.inviting) {
+ var Loader = sdk.getComponent("elements.Spinner");
+ inviteMemberListSection = (
+
+ );
+ }
+ else {
+ inviteMemberListSection = (
+
+ );
+ }
+
+
var TruncatedList = sdk.getComponent("elements.TruncatedList");
return (
- {this.inviteTile()}
+ {inviteMemberListSection}