From 7c3f57c7fa95b1ea3329dd3e70d32314a9d2029e Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Thu, 17 Mar 2022 13:49:18 -0700 Subject: [PATCH] chore: display sync interval seconds on host-set plugin forms (#1014) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- addons/core/translations/form/en-us.yaml | 3 +++ .../components/form/host-set/aws/index.hbs | 19 +++++++++++++++++ .../components/form/host-set/azure/index.hbs | 21 ++++++++++++++++++- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/addons/core/translations/form/en-us.yaml b/addons/core/translations/form/en-us.yaml index 4f872f6e5..6e66b74c3 100644 --- a/addons/core/translations/form/en-us.yaml +++ b/addons/core/translations/form/en-us.yaml @@ -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. diff --git a/ui/admin/app/components/form/host-set/aws/index.hbs b/ui/admin/app/components/form/host-set/aws/index.hbs index 3d7b974ab..7e52f23cc 100644 --- a/ui/admin/app/components/form/host-set/aws/index.hbs +++ b/ui/admin/app/components/form/host-set/aws/index.hbs @@ -236,6 +236,25 @@ + + {{#if @model.errors.sync_interval_seconds}} + + {{#each @model.errors.sync_interval_seconds as |error|}} + {{error.message}} + {{/each}} + + {{/if}} + {{#if (can 'save model' @model)}} {{/if}} + + {{#if @model.errors.sync_interval_seconds}} + + {{#each @model.errors.sync_interval_seconds as |error|}} + {{error.message}} + {{/each}} + + {{/if}} + {{#if (can 'save model' @model)}}