[autofix.ci] apply automated fixes
This commit is contained in:
parent
c6a06dacc1
commit
046d9c1afb
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="! healthCheckStatus" id="health-check" class="d-flex flex-wrap py-3 mx-4">
|
<div v-if="!healthCheckStatus" id="health-check" class="d-flex flex-wrap py-3 mx-4">
|
||||||
<div class="alert alert-danger w-100 d-inline-flex align-items-center justify-content-between">
|
<div class="alert alert-danger w-100 d-inline-flex align-items-center justify-content-between">
|
||||||
<div class="px-3">Monitoring is paused, the health check monitor is down!</div>
|
<div class="px-3">Monitoring is paused, the health check monitor is down!</div>
|
||||||
<div>
|
<div>
|
||||||
@ -44,7 +44,10 @@ export default {
|
|||||||
healthCheckStatus() {
|
healthCheckStatus() {
|
||||||
const healthCheckMonitorId = this.healthCheckMonitor?.id;
|
const healthCheckMonitorId = this.healthCheckMonitor?.id;
|
||||||
|
|
||||||
if (healthCheckMonitorId in this.$root.lastHeartbeatList && this.$root.lastHeartbeatList[healthCheckMonitorId]) {
|
if (
|
||||||
|
healthCheckMonitorId in this.$root.lastHeartbeatList &&
|
||||||
|
this.$root.lastHeartbeatList[healthCheckMonitorId]
|
||||||
|
) {
|
||||||
return this.$root.lastHeartbeatList[healthCheckMonitorId].status === UP;
|
return this.$root.lastHeartbeatList[healthCheckMonitorId].status === UP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -66,11 +66,7 @@
|
|||||||
<option :value="null">
|
<option :value="null">
|
||||||
{{ $t("Select") }}
|
{{ $t("Select") }}
|
||||||
</option>
|
</option>
|
||||||
<option
|
<option v-for="(monitor, index) in $root.monitorList" :key="index" :value="monitor.id">
|
||||||
v-for="(monitor, index) in $root.monitorList"
|
|
||||||
:key="index"
|
|
||||||
:value="monitor.id"
|
|
||||||
>
|
|
||||||
{{ monitor.name }}
|
{{ monitor.name }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
@ -293,7 +289,7 @@ export default {
|
|||||||
this.toastErrorTimeoutSecs = parsedTimeout > 0 ? parsedTimeout / 1000 : parsedTimeout;
|
this.toastErrorTimeoutSecs = parsedTimeout > 0 ? parsedTimeout / 1000 : parsedTimeout;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user