mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
add refresh button
This commit is contained in:
parent
acc0c7867f
commit
e022148875
1 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue