diff --git a/app/assets/javascripts/discourse/app/components/fullname-input.gjs b/app/assets/javascripts/discourse/app/components/fullname-input.gjs index acf8a1c0bf4..6c41c9b1aa8 100644 --- a/app/assets/javascripts/discourse/app/components/fullname-input.gjs +++ b/app/assets/javascripts/discourse/app/components/fullname-input.gjs @@ -6,15 +6,9 @@ import TextField from "discourse/components/text-field"; import valueEntered from "discourse/helpers/value-entered"; import { i18n } from "discourse-i18n"; -export default class SidebarEditNavigationMenuTagsModal extends Component { +export default class FullnameInput extends Component { @service siteSettings; - get showFullname() { - return ( - this.siteSettings.full_name_required || this.siteSettings.enable_names - ); - } - get showFullnameInstructions() { return ( this.siteSettings.show_signup_form_full_name_instructions && 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 7666fa6b341..4d52dfeea30 100644 --- a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs @@ -99,7 +99,7 @@ {{/if}} - {{#if this.fullnameRequired}} + {{#if (and this.showFullname this.fullnameRequired)}} - {{#if this.fullnameRequired}} + {{#if (and this.showFullname this.fullnameRequired)}} - {{#if this.fullnameRequired}} + {{#if (and this.showFullname this.fullnameRequired)}}