diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 29075580..72565d5b 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -10,7 +10,6 @@ const { stream, keyProp = 'id', virtualScroller = false, - eventType = 'update', preprocess, endMessage = true, } = defineProps<{ @@ -18,7 +17,6 @@ const { keyProp?: keyof T virtualScroller?: boolean stream?: mastodon.streaming.Subscription - eventType?: 'notification' | 'update' preprocess?: (items: (U | T)[]) => U[] endMessage?: boolean | string }>() @@ -46,7 +44,7 @@ defineSlots<{ const { t } = useI18n() const nuxtApp = useNuxtApp() -const { items, prevItems, update, state, endAnchor, error } = usePaginator(paginator, $$(stream), eventType, preprocess) +const { items, prevItems, update, state, endAnchor, error } = usePaginator(paginator, $$(stream), preprocess) nuxtApp.hook('elk-logo:click', () => { update() diff --git a/components/notification/NotificationPaginator.vue b/components/notification/NotificationPaginator.vue index 4b6da5a3..27de5eb2 100644 --- a/components/notification/NotificationPaginator.vue +++ b/components/notification/NotificationPaginator.vue @@ -172,7 +172,6 @@ const { formatNumber } = useHumanReadableNumber() :preprocess="preprocess" :stream="stream" :virtualScroller="virtualScroller" - eventType="notification" >