bug fixes

This commit is contained in:
Moriz Wahl 2021-09-14 17:42:57 +02:00
parent 4f5ca22363
commit 8af43bd788
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,7 @@
export default { export default {
name: 'PaginationButtons', name: 'PaginationButtons',
props: { props: {
totalRows: { type: Number, required: true }, totalRows: { required: true },
perPage: { type: Number, required: true }, perPage: { type: Number, required: true },
value: { type: Number, required: true }, value: { type: Number, required: true },
}, },

View File

@ -84,6 +84,7 @@
</div> </div>
</div> </div>
<pagination-buttons <pagination-buttons
v-if="showPagination"
v-model="currentPage" v-model="currentPage"
:per-page="pageSize" :per-page="pageSize"
:total-rows="transactionCount" :total-rows="transactionCount"
@ -130,6 +131,7 @@ export default {
firstPage: this.currentPage, firstPage: this.currentPage,
items: this.pageSize, items: this.pageSize,
}) })
window.scrollTo(0, 0)
}, },
getProperties(givenType) { getProperties(givenType) {
const type = iconsByType[givenType] const type = iconsByType[givenType]