1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Handles the case of closed registrations

This commit is contained in:
Pierre HUBERT 2020-04-15 18:09:22 +02:00
parent b10163575f
commit bd33e1f9c2

View File

@ -132,6 +132,11 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
/// Build visitor state
Widget _buildVisitorState() {
// Check if the user can request membership
if (group.registrationLevel == GroupRegistrationLevel.CLOSED)
return Text(tr("Closed registration"));
return RichText(
text: TextSpan(
text: tr("Request membership"),