Max activity participants (#2871)
* Use participants star for level bar * Remove progress bar drop shadow * Do not allow activities with >50 participants * Fix intl_en comma placement * Add validation to activity editing * Formatting --------- Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
parent
bc77056b96
commit
6a76a27312
3 changed files with 8 additions and 0 deletions
|
|
@ -4946,6 +4946,7 @@
|
|||
"searchChats": "Search chats",
|
||||
"selectChats": "Select chats",
|
||||
"selectChatToStart": "Complete! Select a chat to start",
|
||||
"maxFifty": "Max 50",
|
||||
"configureSpace": "Configure space",
|
||||
"pinMessages": "Pin messages",
|
||||
"setJoinRules": "Set join rules",
|
||||
|
|
|
|||
|
|
@ -176,6 +176,9 @@ class ActivityGeneratorView extends StatelessWidget {
|
|||
if (n == null || n <= 0) {
|
||||
return l10n.mustBeInteger;
|
||||
}
|
||||
if (n > 50) {
|
||||
return l10n.maxFifty;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
onChanged: (val) => controller
|
||||
|
|
|
|||
|
|
@ -270,6 +270,10 @@ class ActivitySuggestionDialogState extends State<ActivitySuggestionDialog> {
|
|||
return L10n.of(context)
|
||||
.pleaseEnterInt;
|
||||
}
|
||||
if (val > 50) {
|
||||
return L10n.of(context)
|
||||
.maxFifty;
|
||||
}
|
||||
} catch (e) {
|
||||
return L10n.of(context)
|
||||
.pleaseEnterANumber;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue