Enable localization for pagination
This commit is contained in:
parent
647184e5d1
commit
f41e95921f
|
@ -57,6 +57,7 @@
|
||||||
v-model="page"
|
v-model="page"
|
||||||
:records="importantHeartBeatList.length"
|
:records="importantHeartBeatList.length"
|
||||||
:per-page="perPage"
|
:per-page="perPage"
|
||||||
|
:options="paginationConfig"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -81,6 +82,17 @@ export default {
|
||||||
page: 1,
|
page: 1,
|
||||||
perPage: 25,
|
perPage: 25,
|
||||||
heartBeatList: [],
|
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:'<<'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -181,6 +181,7 @@
|
||||||
v-model="page"
|
v-model="page"
|
||||||
:records="importantHeartBeatList.length"
|
:records="importantHeartBeatList.length"
|
||||||
:per-page="perPage"
|
:per-page="perPage"
|
||||||
|
:options="paginationConfig"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -237,6 +238,17 @@ export default {
|
||||||
heartBeatList: [],
|
heartBeatList: [],
|
||||||
toggleCertInfoBox: false,
|
toggleCertInfoBox: false,
|
||||||
showPingChartBox: true,
|
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:'<<'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue