From a62a6542e0a61831d33f9e3d2a9e066ab9127b76 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Mon, 12 Sep 2022 10:00:30 -0400 Subject: [PATCH] [ui] Service Discovery: provide a quick link to the Consul UI if available (#14537) * Test for aggregate service health and consul agg service health * If a consul UI link is present, show a nice little link * Also add to job services page * Reallocate consul url in mock --- .../components/allocation-service-sidebar.hbs | 27 ++++--- .../components/allocation-service-sidebar.js | 5 ++ ui/app/components/job-service-row.js | 5 ++ .../templates/components/job-service-row.hbs | 8 +- .../allocation-service-sidebar-test.js | 78 +++++++++++++++++++ 5 files changed, 113 insertions(+), 10 deletions(-) diff --git a/ui/app/components/allocation-service-sidebar.hbs b/ui/app/components/allocation-service-sidebar.hbs index 73a55606518a..b4af0fd2fcf4 100644 --- a/ui/app/components/allocation-service-sidebar.hbs +++ b/ui/app/components/allocation-service-sidebar.hbs @@ -10,15 +10,17 @@

{{@service.name}} - - {{#if (eq this.aggregateStatus 'Unhealthy')}} - - Unhealthy - {{else}} - - Healthy - {{/if}} - + {{#if (not-eq @service.provider "consul")}} + + {{#if (eq this.aggregateStatus 'Unhealthy')}} + + Unhealthy + {{else}} + + Healthy + {{/if}} + + {{/if}}