mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: show required only when full name is required and lint fix (#12916)
This commit is contained in:
parent
3ef1cde6e8
commit
0ac9abe59e
@ -74,7 +74,9 @@
|
||||
<div class="input name-input">
|
||||
<label for="new-account-name">
|
||||
{{i18n "invites.name_label"}}
|
||||
<span class="required">*</span>
|
||||
{{#if siteSettings.full_name_required}}
|
||||
<span class="required">*</span>
|
||||
{{/if}}
|
||||
</label>
|
||||
{{input value=accountName id="new-account-name" name="name"}}
|
||||
<div class="instructions">{{nameInstructions}}</div>
|
||||
|
@ -147,6 +147,12 @@ acceptance("Invite accept", function (needs) {
|
||||
"submit is enabled"
|
||||
);
|
||||
});
|
||||
|
||||
test("invite name is required only if full name is required", async function (assert) {
|
||||
preloadInvite();
|
||||
await visit("/invites/myvalidinvitetoken");
|
||||
assert.ok(exists(".name-input .required"), "Full name is required");
|
||||
});
|
||||
});
|
||||
|
||||
acceptance("Invite accept when local login is disabled", function (needs) {
|
||||
|
Loading…
Reference in New Issue
Block a user