|
@ -347,7 +347,7 @@ export default { |
|
|
let result = {}; |
|
|
let result = {}; |
|
|
|
|
|
|
|
|
let unknown = { |
|
|
let unknown = { |
|
|
text: "Unknown", |
|
|
text: this.$t("Unknown"), |
|
|
color: "secondary", |
|
|
color: "secondary", |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -358,17 +358,17 @@ export default { |
|
|
result[monitorID] = unknown; |
|
|
result[monitorID] = unknown; |
|
|
} else if (lastHeartBeat.status === 1) { |
|
|
} else if (lastHeartBeat.status === 1) { |
|
|
result[monitorID] = { |
|
|
result[monitorID] = { |
|
|
text: "Up", |
|
|
text: this.$t("Up"), |
|
|
color: "primary", |
|
|
color: "primary", |
|
|
}; |
|
|
}; |
|
|
} else if (lastHeartBeat.status === 0) { |
|
|
} else if (lastHeartBeat.status === 0) { |
|
|
result[monitorID] = { |
|
|
result[monitorID] = { |
|
|
text: "Down", |
|
|
text: this.$t("Down"), |
|
|
color: "danger", |
|
|
color: "danger", |
|
|
}; |
|
|
}; |
|
|
} else if (lastHeartBeat.status === 2) { |
|
|
} else if (lastHeartBeat.status === 2) { |
|
|
result[monitorID] = { |
|
|
result[monitorID] = { |
|
|
text: "Pending", |
|
|
text: this.$t("Pending"), |
|
|
color: "warning", |
|
|
color: "warning", |
|
|
}; |
|
|
}; |
|
|
} else { |
|
|
} else { |
|
|