From 616c7c73fbdc07418e8f8154a1d4f189f46bf8f7 Mon Sep 17 00:00:00 2001 From: dharini Date: Mon, 14 Feb 2022 13:37:30 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/target/add-host-sets/index.hbs | 32 ++++++++++++++++--- .../scope/targets/target/host-sources.hbs | 31 ++++++++++++++++-- 2 files changed, 55 insertions(+), 8 deletions(-) diff --git a/ui/admin/app/components/form/target/add-host-sets/index.hbs b/ui/admin/app/components/form/target/add-host-sets/index.hbs index b96753741..241489b42 100644 --- a/ui/admin/app/components/form/target/add-host-sets/index.hbs +++ b/ui/admin/app/components/form/target/add-host-sets/index.hbs @@ -33,11 +33,33 @@ /> {{hostSet.name}} - - {{t - (concat 'resources.host-catalog.types.' hostSet.type '.label') - }} - + {{#if hostSet.isPlugin}} + + {{t + (concat + 'resources.host-catalog.types.' + hostSet.compositeType + '.label' + ) + }} + + {{else}} + + {{t + (concat + 'resources.host-catalog.types.' + hostSet.compositeType + '.label' + ) + }} + + {{/if}} {{hostSet.host_catalog_id}} diff --git a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs index be374ae3d..3dce601fb 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/host-sources.hbs @@ -38,9 +38,34 @@

{{hostSet.model.description}}

- {{t - (concat 'resources.host-catalog.types.' hostSet.model.type '.label') - }} + {{#if hostSet.model.isPlugin}} + + {{t + (concat + 'resources.host-catalog.types.' + hostSet.model.compositeType + '.label' + ) + }} + + {{else}} + + {{t + (concat + 'resources.host-catalog.types.' + hostSet.model.compositeType + '.label' + ) + }} + + {{/if}} +