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.
@@ -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";
}