Skip to content

Commit

Permalink
fix: leases table pagination (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 authored Sep 10, 2024
1 parent d66d365 commit 953f36c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/standalone/dns_dhcp/LeasesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from '@nethesis/vue-components'
import type { StaticLease } from './StaticLeases.vue'
import type { DynamicLease } from './DynamicLeases.vue'
import { ref } from 'vue'
const { t } = useI18n()
Expand All @@ -29,8 +30,9 @@ const props = defineProps<{
const emit = defineEmits(['lease-delete', 'lease-edit', 'create-static-lease-from-dynamic'])
const { currentPage, pageSize, paginatedItems } = useItemPagination(() => props.leases, {
itemsPerPage: 10
const pageSize = ref(10)
const { currentPage, paginatedItems } = useItemPagination(() => props.leases, {
itemsPerPage: pageSize
})
function getDropdownItems(item: StaticLease) {
Expand Down

0 comments on commit 953f36c

Please sign in to comment.