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))}} +