chore: display sync interval seconds on host-set plugin forms (#1014)
* chore: 🤖 display sync_interval_seconds toggle on the forms * chore: 🤖 remove comment * chore: 🤖 remove extra spacing * fix: 🐛 update title and add a description for sync_interval * fix: 🐛 lint in translation * chore: 🤖 fix typo, remove duplicate code * chore: 🤖 simplify sync interval field, remove toggling * fix: 🐛 use correct error code * fix: 🐛 move sync interval translation to forms * fix: 🐛 use appropiate translations label
This commit is contained in:
1 parent
2543d14c5a
commit
7c3f57c7fa
3 files changed
+42
-1
No files matched your search
@@ -143,3 +143,6 @@ host:
|
||||
label: Host
|
||||
ip_addresses:
|
||||
label: Latest IP Addresses
|
||||
sync-interval:
|
||||
label: Sync Interval
|
||||
help: Number of seconds between the time Boundary syncs hosts in this set.
|
||||
@@ -236,6 +236,25 @@
|
||||
</:body>
|
||||
</Rose::Form::Fieldset>
|
||||
|
||||
<form.input
|
||||
@name='sync_interval_seconds'
|
||||
@type='number'
|
||||
@value={{@model.sync_interval_seconds}}
|
||||
@label={{t 'form.sync-interval.label'}}
|
||||
@error={{@model.errors.sync_interval_seconds}}
|
||||
@helperText={{t 'form.sync-interval.help'}}
|
||||
min='0'
|
||||
step='1'
|
||||
as |field|
|
||||
>
|
||||
{{#if @model.errors.sync_interval_seconds}}
|
||||
<field.errors as |errors|>
|
||||
{{#each @model.errors.sync_interval_seconds as |error|}}
|
||||
<errors.message>{{error.message}}</errors.message>
|
||||
{{/each}}
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.input>
|
||||
{{#if (can 'save model' @model)}}
|
||||
<form.actions
|
||||
@disabled={{if @model.cannotSave @model.cannotSave}}
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
@value={{@model.filter}}
|
||||
@label={{t 'resources.host-set.form.filter.label'}}
|
||||
@helperText={{t 'resources.host-set.form.filter.help'}}
|
||||
@linkText={{t 'form. tiltes.learn-more'}}
|
||||
@linkText={{t 'actions.learn-more'}}
|
||||
@error={{@model.errors.description}}
|
||||
disabled={{@model.isSaving}}
|
||||
readonly={{false}}
|
||||
@@ -182,6 +182,25 @@
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.textarea>
|
||||
<form.input
|
||||
@name='sync_interval_seconds'
|
||||
@type='number'
|
||||
@value={{@model.sync_interval_seconds}}
|
||||
@label={{t 'form.sync-interval.label'}}
|
||||
@error={{@model.errors.sync_interval_seconds}}
|
||||
@helperText={{t 'form.sync-interval.help'}}
|
||||
min='0'
|
||||
step='1'
|
||||
as |field|
|
||||
>
|
||||
{{#if @model.errors.sync_interval_seconds}}
|
||||
<field.errors as |errors|>
|
||||
{{#each @model.errors.sync_interval_seconds as |error|}}
|
||||
<errors.message>{{error.message}}</errors.message>
|
||||
{{/each}}
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.input>
|
||||
|
||||
{{#if (can 'save model' @model)}}
|
||||
<form.actions
|
||||
|
||||
Reference in new issue
Block a user