diff --git a/waltid-web-wallet/web/src/pages/wallet/[wallet]/eventlog.vue b/waltid-web-wallet/web/src/pages/wallet/[wallet]/eventlog.vue
index b18b2e776..8750aff5f 100644
--- a/waltid-web-wallet/web/src/pages/wallet/[wallet]/eventlog.vue
+++ b/waltid-web-wallet/web/src/pages/wallet/[wallet]/eventlog.vue
@@ -5,6 +5,24 @@
Loading eventLog...
@@ -105,9 +123,20 @@ import ViewEventDataModal from "~/components/modals/ViewEventDataModal.vue";
const store = useModalStore();
const currentWallet = useCurrentWallet()
+const startingAfter = ref("-1")
console.log("Loading EventLog...");
-const { data: eventLog, pending: pending, refresh, error } = await useLazyFetch(`/wallet-api/wallet/${currentWallet.value}/eventlog`);
-refreshNuxtData();
+const { data: eventLog, pending: pending } = await useLazyAsyncData(
+ () =>
+ $fetch(`/wallet-api/wallet/${currentWallet.value}/eventlog`, {
+ params: {
+ limit: 4,
+ startingAfter: startingAfter.value,
+ },
+ }),
+ {
+ watch: [startingAfter],
+ },
+);
function viewData(title, data) {
console.log(`View event data: ${title}`);
@@ -119,6 +148,14 @@ function viewData(title, data) {
},
});
}
+function prevPage(startingAfterParam){
+ console.log(`prev.page: ${startingAfterParam}`)
+ startingAfter.value = startingAfterParam
+}
+function nextPage(startingAfterParam){
+ console.log(`next.page: ${startingAfterParam}`)
+ startingAfter.value = startingAfterParam
+}