|
|
@ -310,7 +310,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
tagsVisible() {
|
|
|
|
tagsVisible() {
|
|
|
|
return this.config.statusPageTags
|
|
|
|
return this.config.statusPageTags;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
logoClass() {
|
|
|
|
logoClass() {
|
|
|
@ -452,7 +452,11 @@ export default {
|
|
|
|
const monitorHeartbeats = heartbeatList[currentId];
|
|
|
|
const monitorHeartbeats = heartbeatList[currentId];
|
|
|
|
const lastHeartbeat = monitorHeartbeats.at(-1);
|
|
|
|
const lastHeartbeat = monitorHeartbeats.at(-1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (lastHeartbeat) {
|
|
|
|
return lastHeartbeat.status === 0 ? downMonitorsAmount + 1 : downMonitorsAmount;
|
|
|
|
return lastHeartbeat.status === 0 ? downMonitorsAmount + 1 : downMonitorsAmount;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return downMonitorsAmount;
|
|
|
|
|
|
|
|
}
|
|
|
|
}, 0);
|
|
|
|
}, 0);
|
|
|
|
|
|
|
|
|
|
|
|
favicon.badge(downMonitors);
|
|
|
|
favicon.badge(downMonitors);
|
|
|
@ -519,9 +523,9 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...monitor,
|
|
|
|
...monitor,
|
|
|
|
tags: newState ? this.$root.monitorList[monitor.id].tags : []
|
|
|
|
tags: newState ? this.$root.monitorList[monitor.id].tags : []
|
|
|
|
}
|
|
|
|
};
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|