Browse Source

add healthy and unhealthy status to be displayed

Check if status is either Running or Healthy to set span class to bg-primary,
and check if status is Unhealthy to set span class to bg-danger.
Thales 1 year ago
parent
commit
2edbb22dbc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      frontend/src/components/Container.vue

+ 4 - 2
frontend/src/components/Container.vue

@@ -179,8 +179,10 @@ export default defineComponent({
         },
 
         bgStyle() {
-            if (this.status === "running") {
-                return "bg-primary";
+            if (this.status === "running" || this.status === "healthy") {
+                 return "bg-primary";
+            } else if (this.status === "unhealthy") {
+                 return "bg-danger";
             } else {
                 return "bg-secondary";
             }