diff --git a/app/assets/javascripts/discourse/app/components/fullname-input.gjs b/app/assets/javascripts/discourse/app/components/fullname-input.gjs
new file mode 100644
index 00000000000..471c1e14294
--- /dev/null
+++ b/app/assets/javascripts/discourse/app/components/fullname-input.gjs
@@ -0,0 +1,33 @@
+import Component from "@glimmer/component";
+import { on } from "@ember/modifier";
+import InputTip from "discourse/components/input-tip";
+import TextField from "discourse/components/text-field";
+import valueEntered from "discourse/helpers/value-entered";
+
+export default class SidebarEditNavigationMenuTagsModal extends Component {
+ get showFullname() {
+ return (
+ this.siteSettings.full_name_required || this.siteSettings.enable_names
+ );
+ }
+
+
+
+
+
+
+
+
+
+}
diff --git a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs
index 8a9593045bf..1e45eb1bf86 100644
--- a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs
+++ b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs
@@ -95,6 +95,17 @@
/>
+ {{#if this.fullnameRequired}}
+
+ {{/if}}
+
-
- {{#if this.fullnameRequired}}
-
-
-
-
- {{/if}}
-
+ {{#if (and this.showFullname (not this.fullnameRequired))}}
+
+ {{/if}}
{{#if this.userFields}}
diff --git a/app/assets/javascripts/discourse/app/components/modal/create-account.js b/app/assets/javascripts/discourse/app/components/modal/create-account.js
index 23c2390b49e..5b5dca2cd06 100644
--- a/app/assets/javascripts/discourse/app/components/modal/create-account.js
+++ b/app/assets/javascripts/discourse/app/components/modal/create-account.js
@@ -132,11 +132,14 @@ export default class CreateAccount extends Component.extend(
return authOptions && !canEditName;
}
+ @discourseComputed
+ showFullname() {
+ return this.siteSettings.enable_names;
+ }
+
@discourseComputed
fullnameRequired() {
- return (
- this.siteSettings.full_name_required || this.siteSettings.enable_names
- );
+ return this.siteSettings.full_name_required;
}
@discourseComputed("model.authOptions.auth_provider")
diff --git a/app/assets/javascripts/discourse/app/controllers/invites-show.js b/app/assets/javascripts/discourse/app/controllers/invites-show.js
index cff44bfc9a6..58e4144c03b 100644
--- a/app/assets/javascripts/discourse/app/controllers/invites-show.js
+++ b/app/assets/javascripts/discourse/app/controllers/invites-show.js
@@ -155,11 +155,14 @@ export default class InvitesShowController extends Controller.extend(
);
}
+ @discourseComputed
+ showFullname() {
+ return this.siteSettings.enable_names;
+ }
+
@discourseComputed
fullnameRequired() {
- return (
- this.siteSettings.full_name_required || this.siteSettings.enable_names
- );
+ return this.siteSettings.full_name_required;
}
@discourseComputed(
@@ -281,6 +284,14 @@ export default class InvitesShowController extends Controller.extend(
this.toggleProperty("maskPassword");
}
+ @action
+ scrollInputIntoView(event) {
+ event.target.scrollIntoView({
+ behavior: "smooth",
+ block: "center",
+ });
+ }
+
@action
submit() {
const userFields = this.userFields;
diff --git a/app/assets/javascripts/discourse/app/controllers/signup.js b/app/assets/javascripts/discourse/app/controllers/signup.js
index ac4b2d40db1..ff3a453b3e4 100644
--- a/app/assets/javascripts/discourse/app/controllers/signup.js
+++ b/app/assets/javascripts/discourse/app/controllers/signup.js
@@ -121,11 +121,14 @@ export default class SignupPageController extends Controller.extend(
return authOptions && !canEditName;
}
+ @discourseComputed
+ showFullname() {
+ return this.siteSettings.enable_names;
+ }
+
@discourseComputed
fullnameRequired() {
- return (
- this.siteSettings.full_name_required || this.siteSettings.enable_names
- );
+ return this.siteSettings.full_name_required;
}
@discourseComputed("authOptions.auth_provider")
diff --git a/app/assets/javascripts/discourse/app/templates/invites/show.hbs b/app/assets/javascripts/discourse/app/templates/invites/show.hbs
index 60d2f00c0df..90a056474d1 100644
--- a/app/assets/javascripts/discourse/app/templates/invites/show.hbs
+++ b/app/assets/javascripts/discourse/app/templates/invites/show.hbs
@@ -66,6 +66,7 @@
{{#if this.isInviteLink}}
+ {{#if this.fullnameRequired}}
+
+ {{/if}}
+
{{#unless this.externalAuthsOnly}}