Fix pagination

This commit is contained in:
Douglas Barone 2022-10-21 15:23:51 -04:00
parent 309eb16f06
commit 2f12d8eb81
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,8 @@
:headers="headers" :headers="headers"
v-bind="$attrs" v-bind="$attrs"
calculate-widths calculate-widths
hide-default-footer
:items-per-page="itemsPerPage"
@click:row=" @click:row="
e => e =>
$router.push({ $router.push({
@ -30,6 +32,10 @@ export default {
wifiUsers: { wifiUsers: {
type: Array, type: Array,
default: () => [] default: () => []
},
itemsPerPage: {
type: Number,
default: 10
} }
}, },
data: () => ({ data: () => ({

View File

@ -61,6 +61,7 @@
v-if="wifiUsers" v-if="wifiUsers"
:wifi-users="wifiUsers.data" :wifi-users="wifiUsers.data"
:loading="$apollo.queries.wifiUsers.loading" :loading="$apollo.queries.wifiUsers.loading"
:items-per-page="itemsPerPage"
/> />
<v-pagination <v-pagination