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:
parent
34137419ed
commit
2edbb22dbc
1 changed files with 4 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue