1
0
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:
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 /// 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"),