From 03bc75516299bafade7b86d5b2abd86f864d7b88 Mon Sep 17 00:00:00 2001 From: DillonStreator Date: Mon, 11 Oct 2021 11:16:46 -0500 Subject: [PATCH] ui: consistent empty state for intentions (#11261) --- .../dc/services/show/intentions/index.hbs | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs index 63e9815b17..a2a4b26250 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs @@ -89,11 +89,32 @@ as |route|> + +

+ {{#if (gt items.length 0)}} + No intentions found + {{else}} + Welcome to Intentions + {{/if}} +

+

- There are no intentions {{if (gt items.length 0) 'found '}} for this service. + {{#if (gt items.length 0)}} + No intentions where found matching that search, or you may not have access to view the intentions you are searching for. + {{else}} + There don't seem to be any intentions, or you may not have access to view intentions yet. + {{/if}}

+ + + +