diff options
Diffstat (limited to 'packages/frontend/src/components/MkNotesTimeline.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNotesTimeline.vue | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/frontend/src/components/MkNotesTimeline.vue b/packages/frontend/src/components/MkNotesTimeline.vue index d94cf3924c..b03bf6d09f 100644 --- a/packages/frontend/src/components/MkNotesTimeline.vue +++ b/packages/frontend/src/components/MkNotesTimeline.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> <template> -<MkPagination :paginator="paginator" :direction="direction" :autoLoad="autoLoad" :pullToRefresh="pullToRefresh" :withControl="withControl"> +<MkPagination :paginator="paginator" :direction="direction" :autoLoad="autoLoad" :pullToRefresh="pullToRefresh" :withControl="withControl" :forceDisableInfiniteScroll="forceDisableInfiniteScroll"> <template #empty><MkResult type="empty" :text="i18n.ts.noNotes"/></template> <template #default="{ items: notes }"> @@ -40,26 +40,23 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup generic="T extends IPaginator<Misskey.entities.Note>"> import * as Misskey from 'misskey-js'; +import type { MkPaginationOptions } from '@/components/MkPagination.vue'; import type { IPaginator } from '@/utility/paginator.js'; import MkNote from '@/components/MkNote.vue'; import MkPagination from '@/components/MkPagination.vue'; import { i18n } from '@/i18n.js'; -import { globalEvents, useGlobalEvent } from '@/events.js'; +import { useGlobalEvent } from '@/events.js'; import { isSeparatorNeeded, getSeparatorInfo } from '@/utility/timeline-date-separate.js'; -const props = withDefaults(defineProps<{ +const props = withDefaults(defineProps<MkPaginationOptions & { paginator: T; noGap?: boolean; - - direction?: 'up' | 'down' | 'both'; - autoLoad?: boolean; - pullToRefresh?: boolean; - withControl?: boolean; }>(), { autoLoad: true, direction: 'down', pullToRefresh: true, withControl: true, + forceDisableInfiniteScroll: false, }); useGlobalEvent('noteDeleted', (noteId) => { |