mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00: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