Fix lint
This commit is contained in:
parent
285487fb48
commit
5fcffcffa3
2 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue