mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-30 08:44:01 +02:00
refactoe
This commit is contained in:
@@ -31,7 +31,7 @@ import { Paginator } from '@/utility/paginator.js';
|
||||
|
||||
const tab = ref('all');
|
||||
const includeTypes = ref<string[] | null>(null);
|
||||
const excludeTypes = computed(() => includeTypes.value ? notificationTypes.filter(t => !includeTypes.value.includes(t)) : null);
|
||||
const excludeTypes = computed(() => includeTypes.value ? notificationTypes.filter(t => !includeTypes.value!.includes(t)) : null);
|
||||
|
||||
const mentionsPaginator = markRaw(new Paginator('notes/mentions', {
|
||||
limit: 10,
|
||||
@@ -71,7 +71,7 @@ const headerActions = computed(() => [tab.value === 'all' ? {
|
||||
text: i18n.ts.markAllAsRead,
|
||||
icon: 'ti ti-check',
|
||||
handler: () => {
|
||||
os.apiWithDialog('notifications/mark-all-as-read');
|
||||
os.apiWithDialog('notifications/mark-all-as-read', {});
|
||||
},
|
||||
} : undefined].filter(x => x !== undefined));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user