Enable localization for pagination

This commit is contained in:
Soroosh 2021-09-26 18:50:12 +03:30
parent 647184e5d1
commit f41e95921f
2 changed files with 24 additions and 0 deletions

View File

@ -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: {

View File

@ -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: {