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.
This commit is contained in:
Thales 2023-11-16 15:09:52 -03:00
parent 34137419ed
commit 2edbb22dbc

View file

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