[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-01-09 05:18:09 +00:00 committed by GitHub
parent c6a06dacc1
commit 046d9c1afb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,5 @@
<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="px-3">Monitoring is paused, the health check monitor is down!</div>
<div>
@ -44,7 +44,10 @@ export default {
healthCheckStatus() {
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;
}

View File

@ -66,11 +66,7 @@
<option :value="null">
{{ $t("Select") }}
</option>
<option
v-for="(monitor, index) in $root.monitorList"
:key="index"
:value="monitor.id"
>
<option v-for="(monitor, index) in $root.monitorList" :key="index" :value="monitor.id">
{{ monitor.name }}
</option>
</select>
@ -293,7 +289,7 @@ export default {
this.toastErrorTimeoutSecs = parsedTimeout > 0 ? parsedTimeout / 1000 : parsedTimeout;
}
}
}
},
},
};
</script>