mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
Fix for important & pingImportant both true
This commit is contained in:
parent
1870b5c9d6
commit
a453e3c273
2 changed files with 16 additions and 9 deletions
|
@ -43,13 +43,16 @@
|
|||
<tbody>
|
||||
<tr v-for="(beat, index) in displayedRecords" :key="index" :class="{ 'shadow-box': $root.windowWidth <= 550}">
|
||||
<td><router-link :to="`/dashboard/${beat.monitorID}`">{{ $root.monitorList[beat.monitorID]?.name }}</router-link></td>
|
||||
<td v-if="beat.important"><Status :status="beat.status" /></td>
|
||||
<td v-if="beat.pingImportant"><Status :status="beat.pingStatus" /></td>
|
||||
<td>
|
||||
<div v-if="beat.important"><Status :status="beat.status" /></div>
|
||||
<div v-if="beat.pingImportant"><Status :status="beat.pingStatus" /></div>
|
||||
</td>
|
||||
<td :class="{ 'border-0':! beat.msg}"><Datetime :value="beat.time" /></td>
|
||||
<td v-if="beat.important" class="border-0">{{ beat.msg }}</td>
|
||||
<td v-if="beat.pingImportant" class="border-0">{{ beat.pingMsg }}</td>
|
||||
<td class="border-0">
|
||||
<div v-if="beat.important">{{ beat.msg }}</div>
|
||||
<div v-if="beat.pingImportant">{{ beat.pingMsg }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="importantHeartBeatListLength === 0">
|
||||
<td colspan="4">
|
||||
{{ $t("No important events") }}
|
||||
|
|
|
@ -219,11 +219,15 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(beat, index) in displayedRecords" :key="index" style="padding: 10px;">
|
||||
<td v-if="beat.important"><Status :status="beat.status" /></td>
|
||||
<td v-if="beat.pingImportant"><Status :status="beat.pingStatus" /></td>
|
||||
<td>
|
||||
<div v-if="beat.important"><Status :status="beat.status" /></div>
|
||||
<div v-if="beat.pingImportant"><Status :status="beat.pingStatus" /></div>
|
||||
</td>
|
||||
<td :class="{ 'border-0':! beat.msg}"><Datetime :value="beat.time" /></td>
|
||||
<td v-if="beat.important" class="border-0">{{ beat.msg }}</td>
|
||||
<td v-if="beat.pingImportant" class="border-0">{{ beat.pingMsg }}</td>
|
||||
<td class="border-0">
|
||||
<div v-if="beat.important">{{ beat.msg }}</div>
|
||||
<div v-if="beat.pingImportant">{{ beat.pingMsg }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="importantHeartBeatListLength === 0">
|
||||
|
|
Loading…
Add table
Reference in a new issue