From e0221488755c93bc2c29873fab7e85c0c26178c5 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Mon, 30 Sep 2024 13:56:10 -0400 Subject: [PATCH] add refresh button --- packages/frontend/src/pages/following-feed.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/following-feed.vue b/packages/frontend/src/pages/following-feed.vue index 45c1f67d23..8ac474bafc 100644 --- a/packages/frontend/src/pages/following-feed.vue +++ b/packages/frontend/src/pages/following-feed.vue @@ -46,6 +46,7 @@ import { infoImageUrl } from '@/instance.js'; import MkDateSeparatedList from '@/components/MkDateSeparatedList.vue'; import { defaultStore } from '@/store.js'; import { Tab } from '@/components/global/MkPageHeader.tabs.vue'; +import { PageHeaderItem } from '@/types/page-header.js'; // Load the correct note component const MkNote = defineAsyncComponent( @@ -80,7 +81,14 @@ const pagination: Paging<'notes/following'> = { })), }; -const headerActions = computed(() => []); +const headerActions: PageHeaderItem[] = [ + { + icon: 'ti ti-refresh', + text: i18n.ts.reload, + handler: () => reload(), + }, +]; + const headerTabs = computed(() => [ { key: followingTab,