From b5e48a354d6405c4670b9b181c1c1bb2d12bb1c4 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Mon, 24 Aug 2020 09:26:13 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20no=20hosts=20mess?= =?UTF-8?q?age=20if=20no=20hosts=20availabl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host-catalog/host-sets/host-set/hosts.hbs | 30 ++++++++++++++----- ui/core/translations/en-us.yaml | 2 ++ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs b/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs index 4b068ba35..cc1964bf8 100644 --- a/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs +++ b/ui/core/app/templates/scopes/scope/projects/project/host-catalogs/host-catalog/host-sets/host-set/hosts.hbs @@ -1,7 +1,23 @@ - +{{#if @model.hosts}} + +{{/if}} + +{{#unless @model.hosts}} + + + + {{t "descriptions.no-host-set-hosts"}} + + + + {{t "titles.new"}} + + + +{{/unless}} diff --git a/ui/core/translations/en-us.yaml b/ui/core/translations/en-us.yaml index 55783c623..69b41f0cc 100644 --- a/ui/core/translations/en-us.yaml +++ b/ui/core/translations/en-us.yaml @@ -86,6 +86,7 @@ titles: hosts: Hosts targets: Targets global: Global + no-host-set-hosts: No Hosts Available descriptions: host-catalogs: Overview of collections of hosts and host sets. empty-set: There are no items to display yet. You may be able to add items or try back later. @@ -98,6 +99,7 @@ descriptions: groups-welcome: Groups are collections of users. auth-methods-welcome: Auth methods are configurations to authenticate users. targets-welcome: Targets provide Users the means to connect to and interact networked services. A Target contains a collection of Hosts and a collection of Credentials. + no-host-set-hosts: Before associating hosts with this host set, create hosts within the host catalog. states: info: Info success: Success