From 2a11c1ecf6fc2a44bc43594e8184a68cf2dc3101 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Wed, 2 Oct 2024 00:09:32 -0400 Subject: [PATCH] emit "init" event from MkPagination --- packages/frontend/src/components/MkPagination.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 4f2a4d2703..0164883099 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -104,6 +104,7 @@ const props = withDefaults(defineProps<{ const emit = defineEmits<{ (ev: 'queue', count: number): void; (ev: 'status', error: boolean): void; + (ev: 'init'): void; }>(); const rootEl = shallowRef(); @@ -232,6 +233,8 @@ async function init(): Promise { offset.value = res.length; error.value = false; fetching.value = false; + + emit('init'); }, err => { error.value = true; fetching.value = false;