Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ce6ff0

Browse files
committed
Clearer signup limit label
1 parent 29cdeb0 commit 6ce6ff0

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ <h2 i18n>NEW USERS</h2>
186186

187187
<div [ngClass]="getDisabledSignupClass()">
188188
<label i18n for="signupLimit">Signup limit</label>
189+
<span i18n class="small muted ms-1">When the total number of users in your instance reaches this limit, registrations are disabled. -1 == unlimited</span>
189190

190191
<div class="number-with-unit">
191192
<input
@@ -204,11 +205,11 @@ <h2 i18n>NEW USERS</h2>
204205
<label i18n for="signupMinimumAge">Minimum required age to create an account</label>
205206

206207
<div class="number-with-unit">
207-
<input
208-
type="number" min="1" id="signupMinimumAge" class="form-control"
209-
formControlName="minimumAge" [ngClass]="{ 'input-error': formErrors['signup.minimumAge'] }"
210-
>
211-
<span i18n>{form.value['signup']['minimumAge'], plural, =1 {year old} other {years old}}</span>
208+
<input
209+
type="number" min="1" id="signupMinimumAge" class="form-control"
210+
formControlName="minimumAge" [ngClass]="{ 'input-error': formErrors['signup.minimumAge'] }"
211+
>
212+
<span i18n>{form.value['signup']['minimumAge'], plural, =1 {year old} other {years old}}</span>
212213
</div>
213214

214215
<div *ngIf="formErrors.signup.minimumAge" class="form-error" role="alert">{{ formErrors.signup.minimumAge }}</div>

config/default.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ contact_form:
541541
signup:
542542
enabled: false
543543

544-
limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
544+
# When the total number of users in your instance reaches this limit, registrations are disabled.
545+
# -1 == unlimited
546+
limit: 10
545547

546548
minimum_age: 16 # Used to configure the signup form
547549

config/production.yaml.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ contact_form:
551551
signup:
552552
enabled: false
553553

554-
limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
554+
# When the total number of users in your instance reaches this limit, registrations are disabled.
555+
# -1 == unlimited
556+
limit: 10
555557

556558
minimum_age: 16 # Used to configure the signup form
557559

0 commit comments

Comments
 (0)