This commit is contained in:
Louis Lam 2023-11-18 13:19:47 +08:00
parent 285487fb48
commit 5fcffcffa3
2 changed files with 6 additions and 6 deletions

View file

@ -352,10 +352,10 @@ export class Stack {
try {
let obj = JSON.parse(line);
if (obj.Health === "") {
+ statusList.set(obj.Service, obj.State);
+ } else {
+ statusList.set(obj.Service, obj.Health);
+ }
statusList.set(obj.Service, obj.State);
} else {
statusList.set(obj.Service, obj.Health);
}
} catch (e) {
}
}

View file

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