fix: use VnPaginate

This commit is contained in:
Alex Moreno 2024-11-08 17:01:28 +01:00
parent c25fddd953
commit 714a69e572
1 changed files with 3 additions and 7 deletions

View File

@ -13,8 +13,7 @@ import VnAvatar from '../ui/VnAvatar.vue';
import VnJsonValue from '../common/VnJsonValue.vue';
import VnUserLink from '../ui/VnUserLink.vue';
import VnLogFilter from './VnLogFilter.vue';
import VnTable from '../VnTable/VnTable.vue';
import RightMenu from './RightMenu.vue';
import VnPaginate from '../ui/VnPaginate.vue';
const stateStore = useStateStore();
const validationsStore = useValidator();
@ -235,7 +234,7 @@ function filterByRecord(modelLog) {
}
</script>
<template>
<VnTable
<VnPaginate
v-if="modelName"
ref="paginate"
data-key="vnLog"
@ -243,9 +242,6 @@ function filterByRecord(modelLog) {
:skeleton="false"
:user-filter="filter"
@on-fetch="setLogTree"
:columns="[]"
:right-search="false"
:search-url="false"
>
<template #body>
<div
@ -514,7 +510,7 @@ function filterByRecord(modelLog) {
</div>
</div>
</template>
</VnTable>
</VnPaginate>
<Teleport to="#right-panel" v-if="stateStore.isHeaderMounted()">
<VnLogFilter v-model="params" data-key="vnLog" :disable-model="disableModel" />
</Teleport>