Don't display "count" text for pagination

This commit is contained in:
Adam Stachowicz 2021-10-26 18:03:49 +02:00
parent 8d984881c9
commit 2e7ad1b7b2
9 changed files with 14 additions and 47 deletions

View file

@ -83,17 +83,12 @@ export default {
perPage: 25,
heartBeatList: [],
paginationConfig: {
texts:{
count:`${this.$t("Showing {from} to {to} of {count} records")}|{count} ${this.$t("records")}|${this.$t("One record")}`,
first:this.$t("First"),
last:this.$t("Last"),
nextPage:'>',
nextChunk:'>>',
prevPage:'<',
prevChunk:'<<'
}
}
}
texts: {
count: "",
},
chunksNavigation: "scroll",
},
};
},
computed: {
stats() {
@ -106,7 +101,7 @@ export default {
for (let monitorID in this.$root.monitorList) {
let beat = this.$root.lastHeartbeatList[monitorID];
let monitor = this.$root.monitorList[monitorID]
let monitor = this.$root.monitorList[monitorID];
if (monitor && ! monitor.active) {
result.pause++;
@ -132,7 +127,7 @@ export default {
let result = [];
for (let monitorID in this.$root.importantHeartbeatList) {
let list = this.$root.importantHeartbeatList[monitorID]
let list = this.$root.importantHeartbeatList[monitorID];
result = result.concat(list);
}
@ -140,7 +135,7 @@ export default {
let monitor = this.$root.monitorList[beat.monitorID];
if (monitor) {
beat.name = monitor.name
beat.name = monitor.name;
}
}
@ -167,7 +162,7 @@ export default {
return this.heartBeatList.slice(startIndex, endIndex);
},
},
}
};
</script>
<style lang="scss" scoped>