From cf0f4ab56a878eada9e50bc37002aa460608dd4e Mon Sep 17 00:00:00 2001 From: Devon Anderson Date: Fri, 5 Jan 2024 11:18:22 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Refactor=20`credenti?= =?UTF-8?q?al-stores-list`=20to=20use=20`Hds`=20(#2066)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactor `credential-stores-list` to use `Hds::Tables` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11723 --- .../scopes/scope/credential-stores/index.hbs | 88 +++++++++---------- 1 file changed, 43 insertions(+), 45 deletions(-) diff --git a/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs b/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs index e6b606ab9..e1980e422 100644 --- a/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs +++ b/ui/admin/app/templates/scopes/scope/credential-stores/index.hbs @@ -34,53 +34,51 @@ {{#if @model}} - - - - {{t 'form.name.label'}} - {{t 'form.type.label'}} - {{t 'form.id.label'}} - - - - {{#each @model as |credentialStore|}} - - - {{#if (can 'read credential-store' credentialStore)}} - - {{credentialStore.displayName}} - - {{else}} - {{credentialStore.displayName}} - {{/if}} -

{{credentialStore.description}}

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