diff --git a/addons/api/mirage/generated/factories/host.js b/addons/api/mirage/generated/factories/host.js index db9de3b56..08ac8a5f3 100644 --- a/addons/api/mirage/generated/factories/host.js +++ b/addons/api/mirage/generated/factories/host.js @@ -5,7 +5,7 @@ import { random, date, internet, datatype } from 'faker'; * GeneratedHostModelFactory */ export default Factory.extend({ - type: 'static', + type: () => random.arrayElement(['static', 'plugin']), name: () => random.words(), description: () => random.words(), created_time: () => date.recent(), diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs index ccf7e1ec3..eb69b4d5d 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs @@ -11,38 +11,41 @@ {{#each @model as |host|}} - - - {{#if (can 'read model' host)}} - + {{#if host.isStatic}} + + + {{#if (can 'read model' host)}} + + + {{host.displayName}} + + {{else}} {{host.displayName}} - - {{else}} - {{host.displayName}} - {{/if}} -

{{host.description}}

-
- - - {{t (concat 'resources.host.types.' host.type)}} - - - - - {{host.id}} - - - - {{host.attributes.address}} - -
+ {{/if}} +

{{host.description}}

+ + + + {{t (concat 'resources.host.types.' host.type)}} + + + + + {{host.id}} + + + + {{host.attributes.address}} + + + {{/if}} {{/each}}
diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs index f48b2a895..ae19cb440 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs @@ -5,37 +5,35 @@ {{#each @model.hosts as |host|}} - {{#if host.isStatic}} - - - {{host.displayName}} -

{{host.description}}

-
- - - {{host.id}} - - - {{host.attributes.address}} - - {{t - (concat 'resources.host.types.' host.type) - }} - - - - {{t 'resources.session.actions.connect'}} - - -
- {{/if}} + + + {{host.displayName}} +

{{host.description}}

+
+ + + {{host.id}} + + + {{host.attributes.address}} + + {{t + (concat 'resources.host.types.' host.type) + }} + + + + {{t 'resources.session.actions.connect'}} + + +
{{/each}}
@@ -53,4 +51,4 @@ -{{/if}} \ No newline at end of file +{{/if}}