diff --git a/src/components/OffLineList.vue b/src/components/OffLineList.vue deleted file mode 100644 index 4169fef23..000000000 --- a/src/components/OffLineList.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - diff --git a/src/components/OfflineList.vue b/src/components/OfflineList.vue new file mode 100644 index 000000000..48722dd62 --- /dev/null +++ b/src/components/OfflineList.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index ea7d54a19..96ed9190d 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -59,7 +59,7 @@ - + {{ $root.monitorList[beat.monitorID]?.name }} @@ -108,8 +108,8 @@ export default { props: { calculatedHeight: { type: Number, - default: 0 - } + default: 0, + }, }, data() { return { @@ -124,6 +124,11 @@ export default { displayedRecords: [], }; }, + computed: { + onlineHeartbeats() { + return this.displayedRecords.filter((beat) => beat.status !== 0); + }, + }, watch: { perPage() { this.$nextTick(() => {