fix: disable reloads on timeline

This commit is contained in:
cutestnekoaqua 2023-01-19 19:16:53 +01:00
parent 5a2990a2fa
commit f3f45bac5c
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<template>
<MkPagination ref="pagingComponent" :pagination="pagination">
<MkPagination ref="pagingComponent" :pagination="pagination" disableReload="true">
<template #empty>
<div class="_fullinfo">
<img src="/static-assets/badges/info.png" class="_ghost" alt="Info"/>

View file

@ -69,6 +69,7 @@ const props = withDefaults(defineProps<{
disableAutoLoad?: boolean;
displayLimit?: number;
externalItemArray?: Ref<Array<any>>;
disableReload?: boolean;
}>(), {
displayLimit: 30,
});
@ -345,7 +346,7 @@ init();
onActivated(() => {
isBackTop.value = false;
if(alreadyInitedOnce.value) {
if(alreadyInitedOnce.value && (!props.disableReload || !props.disableReload.value)) {
reload();
}
});