mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 20:02:29 +08:00
Don't display "count" text for pagination
This commit is contained in:
@@ -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>
|
||||
|
@@ -210,15 +210,10 @@ export default {
|
||||
showPingChartBox: true,
|
||||
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: "<<"
|
||||
}
|
||||
}
|
||||
count: "",
|
||||
},
|
||||
chunksNavigation: "scroll",
|
||||
},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
Reference in New Issue
Block a user