From 01d4a329abf319c66d4cf612d50e4776b51646cd Mon Sep 17 00:00:00 2001 From: Devon Anderson Date: Tue, 2 Jan 2024 10:15:19 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Migrate=20host-sets-?= =?UTF-8?q?list=20in=20host=20catalog=20to=20`Hds`=20(#2057)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 💡 Migrate host-sets-list in host catalog to `Hds` Migrate `host-catalog` `host-sets` list to use `Hds::Table` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11727 * refactor: 💡 refactor incorrect use of `Hds::Code::Snippet` Revactor incorrect use of `Hds::Code::Snippet` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11727 * Update index.hbs color for text should be `secondary` * Update index.hbs lint error * refactor: 💡 quick lint fix quick lint fix ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11727 --- .../host-catalog/host-sets/index.hbs | 77 +++++++++---------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs index 6adb370db..20f391a3d 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs @@ -22,47 +22,46 @@ {{#if @model.hostSets}} - - - - {{t 'form.name.label'}} - {{t 'form.type.label'}} - {{t 'form.id.label'}} - - - - {{#each @model.hostSets as |hostSet|}} - - - {{#if (can 'read model' hostSet)}} - - {{hostSet.displayName}} - - {{else}} - {{hostSet.displayName}} - {{/if}} -

{{hostSet.description}}

-
- - - - - + <:body as |B|> + + + {{#if (can 'read model' B.data)}} + - {{hostSet.id}} - - -
- {{/each}} -
-
+ {{B.data.displayName}} + + {{else}} + + {{B.data.displayName}} + + {{/if}} + + {{B.data.description}} + + + + + + + + + + + {{else}}