chore: 🤖 clean up isRequired/isOptional boolean (#1624)
This commit is contained in:
1 parent
d0beb6eabd
commit
df4590de96
7 files changed
-17
No files matched your search
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{true}}
|
@isRequired={{true}}
|
||||||
@isOptional={{false}}
|
|
||||||
@value={{this.currentPassword}}
|
@value={{this.currentPassword}}
|
||||||
@type='password'
|
@type='password'
|
||||||
name='currentPassword'
|
name='currentPassword'
|
||||||
@@ -22,7 +21,6 @@
|
|||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{true}}
|
@isRequired={{true}}
|
||||||
@isOptional={{false}}
|
|
||||||
@value={{this.newPassword}}
|
@value={{this.newPassword}}
|
||||||
@type='password'
|
@type='password'
|
||||||
name='newPassword'
|
name='newPassword'
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{true}}
|
@isRequired={{true}}
|
||||||
@isOptional={{false}}
|
|
||||||
@value={{this.password}}
|
@value={{this.password}}
|
||||||
@type='password'
|
@type='password'
|
||||||
name='password'
|
name='password'
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
as |form|
|
as |form|
|
||||||
>
|
>
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.name}}
|
@value={{@model.name}}
|
||||||
@isInvalid={{@model.errors.name}}
|
@isInvalid={{@model.errors.name}}
|
||||||
@@ -28,7 +27,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::Textarea::Field
|
<Hds::Form::Textarea::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.description}}
|
@value={{@model.description}}
|
||||||
@isInvalid={{@model.errors.description}}
|
@isInvalid={{@model.errors.description}}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.name}}
|
@value={{@model.name}}
|
||||||
@isInvalid={{@model.errors.name}}
|
@isInvalid={{@model.errors.name}}
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::Textarea::Field
|
<Hds::Form::Textarea::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.description}}
|
@value={{@model.description}}
|
||||||
@isInvalid={{@model.errors.description}}
|
@isInvalid={{@model.errors.description}}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.name}}
|
@value={{@model.name}}
|
||||||
@isInvalid={{@model.errors.name}}
|
@isInvalid={{@model.errors.name}}
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::Textarea::Field
|
<Hds::Form::Textarea::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.description}}
|
@value={{@model.description}}
|
||||||
@isInvalid={{@model.errors.description}}
|
@isInvalid={{@model.errors.description}}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::Textarea::Field
|
<Hds::Form::Textarea::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.description}}
|
@value={{@model.description}}
|
||||||
@isInvalid={{@model.errors.description}}
|
@isInvalid={{@model.errors.description}}
|
||||||
@@ -82,7 +81,6 @@
|
|||||||
|
|
||||||
{{#if (feature-flag 'target-network-address')}}
|
{{#if (feature-flag 'target-network-address')}}
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.address}}
|
@value={{@model.address}}
|
||||||
@isInvalid={{@model.errors.address}}
|
@isInvalid={{@model.errors.address}}
|
||||||
@@ -132,7 +130,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.session_max_seconds}}
|
@value={{@model.session_max_seconds}}
|
||||||
@isInvalid={{@model.errors.session_max_seconds}}
|
@isInvalid={{@model.errors.session_max_seconds}}
|
||||||
@@ -154,7 +151,6 @@
|
|||||||
</Hds::Form::TextInput::Field>
|
</Hds::Form::TextInput::Field>
|
||||||
|
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.session_connection_limit}}
|
@value={{@model.session_connection_limit}}
|
||||||
@isInvalid={{@model.errors.session_connection_limit}}
|
@isInvalid={{@model.errors.session_connection_limit}}
|
||||||
@@ -180,7 +176,6 @@
|
|||||||
<Hds::Form::Fieldset
|
<Hds::Form::Fieldset
|
||||||
class='target-workers'
|
class='target-workers'
|
||||||
@layout='horizontal'
|
@layout='horizontal'
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
as |F|
|
as |F|
|
||||||
>
|
>
|
||||||
@@ -291,7 +286,6 @@
|
|||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@model.worker_filter}}
|
@value={{@model.worker_filter}}
|
||||||
@isInvalid={{@model.errors.worker_filter}}
|
@isInvalid={{@model.errors.worker_filter}}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
name='target-worker-filter-toggle'
|
name='target-worker-filter-toggle'
|
||||||
checked={{@toggleEnabled}}
|
checked={{@toggleEnabled}}
|
||||||
disabled={{@disabled}}
|
disabled={{@disabled}}
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
{{on 'change' @toggleAction}}
|
{{on 'change' @toggleAction}}
|
||||||
as |F|
|
as |F|
|
||||||
@@ -17,7 +16,6 @@
|
|||||||
|
|
||||||
{{#if @toggleEnabled}}
|
{{#if @toggleEnabled}}
|
||||||
<Hds::Form::TextInput::Field
|
<Hds::Form::TextInput::Field
|
||||||
@isRequired={{false}}
|
|
||||||
@isOptional={{true}}
|
@isOptional={{true}}
|
||||||
@value={{@value}}
|
@value={{@value}}
|
||||||
@isInvalid={{@isInvalid}}
|
@isInvalid={{@isInvalid}}
|
||||||
|
|||||||
Reference in new issue
Block a user