mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
emit "init" event from MkPagination
This commit is contained in:
parent
8f14fec45b
commit
2a11c1ecf6
1 changed files with 3 additions and 0 deletions
|
@ -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<HTMLElement>();
|
||||
|
@ -232,6 +233,8 @@ async function init(): Promise<void> {
|
|||
offset.value = res.length;
|
||||
error.value = false;
|
||||
fetching.value = false;
|
||||
|
||||
emit('init');
|
||||
}, err => {
|
||||
error.value = true;
|
||||
fetching.value = false;
|
||||
|
|
Loading…
Reference in a new issue