From 084ed7a457004be524159a89b1ad37c3b5ac3a54 Mon Sep 17 00:00:00 2001 From: Kelv Date: Fri, 24 Jan 2025 13:57:16 +0800 Subject: [PATCH] DEV: refactor components dependent on UsernameValidation to use related tracked properties and native inputs (#30946) This will update properties that are used by the UsernameValidation mixin to autotracking and also updates the use of Input component in these templates to native inputs. This will help the refactor of the mixin to a helper class that uses the modern Ember reactivity system. --- .../app/components/modal/create-account.hbs | 14 ++++++---- .../app/components/modal/create-account.js | 28 +++++++++++-------- .../discourse/app/controllers/invites-show.js | 15 ++++++---- .../discourse/app/controllers/signup.js | 15 +++++++--- .../app/mixins/username-validation.js | 2 +- .../discourse/app/routes/invites-show.js | 1 + .../discourse/app/templates/invites/show.hbs | 6 ++-- .../discourse/app/templates/signup.hbs | 6 ++-- 8 files changed, 55 insertions(+), 32 deletions(-) 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 4d52dfeea30..6f9c782195b 100644 --- a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs @@ -70,9 +70,11 @@
-