chore: Migrate form.input to use Hds text input field (#2154)
* chore: 🤖 Migrate `form.input` to use `Hds` form input field Migrate `form.input` for `clusterurl.hbs` to use `Hds::Form::TextInput::Field` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12478 * refactor: 💡 removed unused `data-test` attribute removed unused `data-test` attribute ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12478
This commit is contained in:
1 parent
38df28be55
commit
47d7ceccf7
1 file changed
+8
-6
@@ -15,14 +15,16 @@
|
||||
@disabled={{(is-loading)}}
|
||||
as |form|
|
||||
>
|
||||
<form.input
|
||||
@name='host'
|
||||
@type='text'
|
||||
<Hds::Form::TextInput::Field
|
||||
name='host'
|
||||
@value={{this.clusterUrl}}
|
||||
@label={{t 'form.cluster-url.label'}}
|
||||
@helperText={{t 'form.cluster-url.description'}}
|
||||
{{autofocus}}
|
||||
/>
|
||||
{{on 'input' (set-from-event this 'clusterUrl')}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.cluster-url.label'}}</F.Label>
|
||||
<F.HelperText>{{t 'form.cluster-url.description'}}</F.HelperText>
|
||||
</Hds::Form::TextInput::Field>
|
||||
|
||||
<form.actions>
|
||||
<:actions>
|
||||
|
||||
Reference in new issue
Block a user