forked from FoundKeyGang/FoundKey
Make mentions and direct notes accessible via url fragments
This commit is contained in:
parent
f2ebf77ab1
commit
f0ba8d1877
2 changed files with 8 additions and 1 deletions
|
@ -24,7 +24,13 @@ import * as os from '@/os';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||||
|
|
||||||
let tab = $ref('all');
|
const props = withDefaults(defineProps<{
|
||||||
|
initialTab?: string;
|
||||||
|
}>(), {
|
||||||
|
initialTab: 'all',
|
||||||
|
});
|
||||||
|
|
||||||
|
let tab = $ref(props.initialTab);
|
||||||
let includeTypes = $ref<string[] | null>(null);
|
let includeTypes = $ref<string[] | null>(null);
|
||||||
let unreadOnly = $computed(() => tab === 'unread');
|
let unreadOnly = $computed(() => tab === 'unread');
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,7 @@ export const routes = [{
|
||||||
}, {
|
}, {
|
||||||
path: '/my/notifications',
|
path: '/my/notifications',
|
||||||
component: page(() => import('./pages/notifications.vue')),
|
component: page(() => import('./pages/notifications.vue')),
|
||||||
|
hash: 'initialTab',
|
||||||
loginRequired: true,
|
loginRequired: true,
|
||||||
}, {
|
}, {
|
||||||
path: '/my/favorites',
|
path: '/my/favorites',
|
||||||
|
|
Loading…
Reference in a new issue