diff --git a/.changelog/17465.txt b/.changelog/17465.txt new file mode 100644 index 00000000000..63977d8260c --- /dev/null +++ b/.changelog/17465.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: dont show a service as healthy when its parent allocation stops running +``` diff --git a/ui/app/components/allocation-service-sidebar.hbs b/ui/app/components/allocation-service-sidebar.hbs index c91bab1f9e0..4c0881bd705 100644 --- a/ui/app/components/allocation-service-sidebar.hbs +++ b/ui/app/components/allocation-service-sidebar.hbs @@ -20,6 +20,11 @@ {{#if (eq this.aggregateStatus 'Unhealthy')}} Unhealthy + {{else if (eq this.aggregateStatus 'Unknown')}} + + + Health Unknown + {{else}} Healthy diff --git a/ui/app/components/allocation-service-sidebar.js b/ui/app/components/allocation-service-sidebar.js index 3f84a9f50e5..6b6945e3f6b 100644 --- a/ui/app/components/allocation-service-sidebar.js +++ b/ui/app/components/allocation-service-sidebar.js @@ -38,6 +38,7 @@ export default class AllocationServiceSidebarComponent extends Component { } get aggregateStatus() { + if (this.args.allocation?.clientStatus != -'running') return 'Unknown'; return this.checks.any((check) => check.Status === 'failure') ? 'Unhealthy' : 'Healthy';