From 0bbc33d073b17aadb36149dd00fb632f82d04d5f Mon Sep 17 00:00:00 2001 From: Devon Anderson Date: Wed, 13 Dec 2023 10:28:32 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Refactor=20`targets-?= =?UTF-8?q?list`=20to=20use=20`Hds`=20(#2041)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migrate `targets-list` from `Rose::Table` to `Hds::Table`. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11733 --- .../templates/scopes/scope/targets/index.hbs | 132 +++++++++--------- 1 file changed, 64 insertions(+), 68 deletions(-) diff --git a/ui/admin/app/templates/scopes/scope/targets/index.hbs b/ui/admin/app/templates/scopes/scope/targets/index.hbs index 647d8d0e4..80f5abb86 100644 --- a/ui/admin/app/templates/scopes/scope/targets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/index.hbs @@ -32,89 +32,85 @@ {{#if @model}} - - - - {{t 'form.name.label'}} - {{t 'form.type.label'}} - {{t 'form.id.label'}} - - - - {{#each @model as |target|}} - {{#if (feature-flag 'ssh-target')}} - - - - {{#if (can 'read model' target)}} + + <:body as |B|> + {{#if (feature-flag 'ssh-target')}} + + + {{#if (can 'read model' B.data)}} + + {{B.data.displayName}} + + {{else}} + {{B.data.displayName}} + {{/if}} +

{{B.data.description}}

+
+ + {{#if B.data.type}} + + {{/if}} + + + + {{B.data.id}} + + +
+ {{else}} + {{#if B.data.isTCP}} + + + {{#if (can 'read model' B.data)}} - {{target.displayName}} + {{B.data.displayName}} {{else}} - {{target.displayName}} + {{B.data.displayName}} {{/if}} -

{{target.description}}

-
- - {{#if target.type}} +

{{B.data.description}}

+ + + {{#if B.data.type}} {{/if}} -
- + + - {{target.id}} + {{B.data.id}} - -
- {{else}} - {{#if target.isTCP}} - - - {{#if (can 'read model' target)}} - - {{target.displayName}} - - {{else}} - {{target.displayName}} - {{/if}} -

{{target.description}}

-
- - {{#if target.type}} - - {{/if}} - - - - {{target.id}} - - -
- {{/if}} + + {{/if}} - {{/each}} -
-
+ {{/if}} + + {{else}}