fix: disable reloads on timeline
This commit is contained in:
parent
5a2990a2fa
commit
f3f45bac5c
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<MkPagination ref="pagingComponent" :pagination="pagination">
|
<MkPagination ref="pagingComponent" :pagination="pagination" disableReload="true">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<div class="_fullinfo">
|
<div class="_fullinfo">
|
||||||
<img src="/static-assets/badges/info.png" class="_ghost" alt="Info"/>
|
<img src="/static-assets/badges/info.png" class="_ghost" alt="Info"/>
|
||||||
|
|
|
@ -69,6 +69,7 @@ const props = withDefaults(defineProps<{
|
||||||
disableAutoLoad?: boolean;
|
disableAutoLoad?: boolean;
|
||||||
displayLimit?: number;
|
displayLimit?: number;
|
||||||
externalItemArray?: Ref<Array<any>>;
|
externalItemArray?: Ref<Array<any>>;
|
||||||
|
disableReload?: boolean;
|
||||||
}>(), {
|
}>(), {
|
||||||
displayLimit: 30,
|
displayLimit: 30,
|
||||||
});
|
});
|
||||||
|
@ -345,7 +346,7 @@ init();
|
||||||
|
|
||||||
onActivated(() => {
|
onActivated(() => {
|
||||||
isBackTop.value = false;
|
isBackTop.value = false;
|
||||||
if(alreadyInitedOnce.value) {
|
if(alreadyInitedOnce.value && (!props.disableReload || !props.disableReload.value)) {
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue