diff options
Diffstat (limited to 'app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue')
-rw-r--r-- | app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue b/app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue index 95c1f575fe4..b68148e5461 100644 --- a/app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue +++ b/app/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue @@ -59,6 +59,8 @@ export default { 'emailRestrictions', 'afterSignUpText', 'pendingUserCount', + 'projectSharingHelpLink', + 'groupSharingHelpLink', ], data() { return { @@ -83,6 +85,8 @@ export default { supportedSyntaxLinkUrl: this.supportedSyntaxLinkUrl, emailRestrictions: this.emailRestrictions, afterSignUpText: this.afterSignUpText, + projectSharingHelpLink: this.projectSharingHelpLink, + groupSharingHelpLink: this.groupSharingHelpLink, }, }; }, @@ -219,7 +223,7 @@ export default { ), userCapLabel: s__('ApplicationSettings|User cap'), userCapDescription: s__( - 'ApplicationSettings|After the instance reaches the user cap, any user who is added or requests access must be approved by an administrator. Leave blank for unlimited.', + 'ApplicationSettings|After the instance reaches the user cap, any user who is added or requests access must be approved by an administrator. Leave blank for an unlimited user cap. If you change the user cap to unlimited, you must re-enable %{projectSharingLinkStart}project sharing%{projectSharingLinkEnd} and %{groupSharingLinkStart}group sharing%{groupSharingLinkEnd}.', ), domainDenyListGroupLabel: s__('ApplicationSettings|Domain denylist'), domainDenyListLabel: s__('ApplicationSettings|Enable domain denylist for sign-ups'), @@ -308,6 +312,7 @@ export default { <gl-form-group :label="$options.i18n.userCapLabel" :description="$options.i18n.userCapDescription" + data-testid="user-cap-form-group" > <gl-form-input v-model="form.userCap" @@ -315,6 +320,17 @@ export default { name="application_setting[new_user_signups_cap]" data-testid="user-cap-input" /> + + <template #description> + <gl-sprintf :message="$options.i18n.userCapDescription"> + <template #projectSharingLink="{ content }"> + <gl-link :href="projectSharingHelpLink" target="_blank">{{ content }}</gl-link> + </template> + <template #groupSharingLink="{ content }"> + <gl-link :href="groupSharingHelpLink" target="_blank">{{ content }}</gl-link> + </template> + </gl-sprintf> + </template> </gl-form-group> <gl-form-group :label="$options.i18n.minimumPasswordLengthLabel"> |