diff --git a/ui/src/app/pages/apps-routes/app-show/components/app-show-health-checks/app-show-health-checks.component.html b/ui/src/app/pages/apps-routes/app-show/components/app-show-health-checks/app-show-health-checks.component.html index 8a42851be..67cb807a9 100644 --- a/ui/src/app/pages/apps-routes/app-show/components/app-show-health-checks/app-show-health-checks.component.html +++ b/ui/src/app/pages/apps-routes/app-show/components/app-show-health-checks/app-show-health-checks.component.html @@ -1,78 +1,80 @@ - Health Checks - - - - - - - - - - + + Health Checks + + + + + + + + + + + + + + + + + + + +

+ {{ pkg.manifest['health-checks'][health.key].name }} +

+ +

+ {{ result | titlecase }} + ... + + {{ $any(health.value).error }} + + + {{ $any(health.value).message }} + +

+
+
+
+ + + +

{{ health.key }}

+

Awaiting result...

+
+
+
+
- - - - - - - - -

- {{ pkg.manifest['health-checks'][health.key].name }} -

- -

- {{ result | titlecase }} - ... - - {{ $any(health.value).error }} - - - {{ $any(health.value).message }} - -

-
-
-
- - - -

{{ health.key }}

-

Awaiting result...

-
-
-
-
diff --git a/ui/src/app/pages/apps-routes/app-show/pipes/to-health-checks.pipe.ts b/ui/src/app/pages/apps-routes/app-show/pipes/to-health-checks.pipe.ts index 459ef32aa..aaf413a60 100644 --- a/ui/src/app/pages/apps-routes/app-show/pipes/to-health-checks.pipe.ts +++ b/ui/src/app/pages/apps-routes/app-show/pipes/to-health-checks.pipe.ts @@ -27,13 +27,13 @@ export class ToHealthChecksPipe implements PipeTransform { .watch$('package-data', pkg.manifest.id, 'installed', 'status', 'main') .pipe( filter(obj => exists(obj)), - map(main => + map(main => { // Question: is this ok or do we have to use Object.keys // to maintain order and the keys initially present in pkg? - main.status === PackageMainStatus.Running + return main.status === PackageMainStatus.Running && !isEmptyObject(main.health) ? main.health - : healthChecks, - ), + : healthChecks + }), startWith(healthChecks), )