mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Handles the case of closed registrations
This commit is contained in:
parent
b10163575f
commit
bd33e1f9c2
@ -132,6 +132,11 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
|
|||||||
|
|
||||||
/// Build visitor state
|
/// Build visitor state
|
||||||
Widget _buildVisitorState() {
|
Widget _buildVisitorState() {
|
||||||
|
|
||||||
|
// Check if the user can request membership
|
||||||
|
if (group.registrationLevel == GroupRegistrationLevel.CLOSED)
|
||||||
|
return Text(tr("Closed registration"));
|
||||||
|
|
||||||
return RichText(
|
return RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text: tr("Request membership"),
|
text: tr("Request membership"),
|
||||||
|
Loading…
Reference in New Issue
Block a user