mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Fix linting issues.
This commit is contained in:
parent
1dd6e61269
commit
f5e1df7dae
1 changed files with 4 additions and 4 deletions
|
@ -313,14 +313,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="this.$root.downMonitors?.length > 0" class="mb-4">
|
<div v-if="$root.downMonitors?.length > 0" class="mb-4">
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<h2 class="group-title">
|
<h2 class="group-title">
|
||||||
{{ $t(this.$root.downMonitors.length === 1 ? "offlineMonitor" : "offlineMonitors") }}
|
{{ $t($root.downMonitors.length === 1 ? "offlineMonitor" : "offlineMonitors") }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="shadow-box monitor-list mt-4 position-relative">
|
<div class="shadow-box monitor-list mt-4 position-relative">
|
||||||
<div v-for="monitor in this.$root.downMonitors" :key="monitor.id" class="item">
|
<div v-for="monitor in $root.downMonitors" :key="monitor.id" class="item">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-9 col-md-8 small-padding">
|
<div class="col-9 col-md-8 small-padding">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
|
@ -796,7 +796,7 @@ export default {
|
||||||
this.$root.heartbeatList = heartbeatList;
|
this.$root.heartbeatList = heartbeatList;
|
||||||
this.$root.uptimeList = uptimeList;
|
this.$root.uptimeList = uptimeList;
|
||||||
|
|
||||||
this.$root.downMonitors = this.downMonitors();
|
this.$root.downMonitors = this.downMonitors();
|
||||||
|
|
||||||
const heartbeatIds = Object.keys(heartbeatList);
|
const heartbeatIds = Object.keys(heartbeatList);
|
||||||
const downMonitors = heartbeatIds.reduce((downMonitorsAmount, currentId) => {
|
const downMonitors = heartbeatIds.reduce((downMonitorsAmount, currentId) => {
|
||||||
|
|
Loading…
Reference in a new issue