mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
Make my groups page a bit saner
This commit is contained in:
parent
84e13d5437
commit
3892362386
2 changed files with 8 additions and 3 deletions
|
@ -91,11 +91,16 @@ export default WithMatrixClient(React.createClass({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
content = <div>{groupNodes}</div>;
|
content = <div>
|
||||||
|
<div>{_t('You are a member of these groups')}:</div>
|
||||||
|
{groupNodes}
|
||||||
|
</div>;
|
||||||
} else if (this.state.error) {
|
} else if (this.state.error) {
|
||||||
content = <div className="mx_MyGroups_error">
|
content = <div className="mx_MyGroups_error">
|
||||||
Error whilst fetching joined groups
|
Error whilst fetching joined groups
|
||||||
</div>;
|
</div>;
|
||||||
|
} else {
|
||||||
|
content = <Loader />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div className="mx_MyGroups">
|
return <div className="mx_MyGroups">
|
||||||
|
@ -105,7 +110,6 @@ export default WithMatrixClient(React.createClass({
|
||||||
{_t('Create a new group')}
|
{_t('Create a new group')}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
</div>
|
</div>
|
||||||
You are a member of these groups:
|
|
||||||
{content}
|
{content}
|
||||||
</div>;
|
</div>;
|
||||||
},
|
},
|
||||||
|
|
|
@ -936,5 +936,6 @@
|
||||||
"+example:%(domain)s": "+example:%(domain)s",
|
"+example:%(domain)s": "+example:%(domain)s",
|
||||||
"Group IDs must be of the form +localpart:%(domain)s": "Group IDs must be of the form +localpart:%(domain)s",
|
"Group IDs must be of the form +localpart:%(domain)s": "Group IDs must be of the form +localpart:%(domain)s",
|
||||||
"It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s": "It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s",
|
"It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s": "It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s",
|
||||||
"Room creation failed": "Room creation failed"
|
"Room creation failed": "Room creation failed",
|
||||||
|
"You are a member of these groups": "You are a member of these groups"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue