From aae85c44d29cf381e27bbc16bf45cd2bede84ee1 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 15 Nov 2022 09:34:25 -0800 Subject: [PATCH] Migrate change-password form to HDS input fields. (#1460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 💡 update scope form to use HDS input and textarea * chore: 🤖 tweak "optional" label text color in dark mode * fix: 🐛 add HDS field margins and fix form tests * fix: 🐛 fix acceptance tests and add TextInput event handlers * refactor: 💡 migrate change-password form to HDS inputs * fix: 🐛 use input event and fix set-from-event to handle empty * chore: 🤖 reverse order of isRequired and isOptional * fix: 🐛 use @type as required by HDS * chore: 🤖 fix linting --- .../password/change-password/index.hbs | 58 ++++++++----------- ui/admin/app/components/form/scope/index.hbs | 4 +- 2 files changed, 26 insertions(+), 36 deletions(-) diff --git a/ui/admin/app/components/form/account/password/change-password/index.hbs b/ui/admin/app/components/form/account/password/change-password/index.hbs index 46d2f0df9..1a34c7872 100644 --- a/ui/admin/app/components/form/account/password/change-password/index.hbs +++ b/ui/admin/app/components/form/account/password/change-password/index.hbs @@ -6,43 +6,33 @@ as |form| > - - {{#if @model.errors.name}} - - {{#each @model.errors.name as |error|}} - {{error.message}} - {{/each}} - - {{/if}} - - - - {{#if @model.errors.name}} - - {{#each @model.errors.name as |error|}} - {{error.message}} - {{/each}} - - {{/if}} - + {{t 'form.current_password.label'}} + + + + {{t 'form.new_password.label'}} +