fix missing icon

This commit is contained in:
NoriDev 2023-06-22 19:37:39 +09:00
parent e85b35cc63
commit 41948632c4
2 changed files with 4 additions and 2 deletions

View file

@ -286,6 +286,8 @@ export type LiteInstanceMetadata = {
feedbackUrl: string;
disableRegistration: boolean;
disableLocalTimeline: boolean;
disableMediaTimeline: boolean;
disableTimeline: boolean;
disableGlobalTimeline: boolean;
driveCapacityPerLocalUserMb: number;
driveCapacityPerRemoteUserMb: number;

View file

@ -139,7 +139,7 @@ async function chooseChannel(ev: MouseEvent): Promise<void> {
os.popupMenu(items, ev.currentTarget ?? ev.target);
}
function saveSrc(newSrc: 'home' | 'local' | 'social' | 'global'): void {
function saveSrc(newSrc: 'home' | 'local' | 'media' | 'social' | 'cat' | 'global'): void {
defaultStore.set('tl', {
...defaultStore.state.tl,
src: newSrc,
@ -247,7 +247,7 @@ const headerTabsWhenNotLogin = $computed(() => [
definePageMetadata(computed(() => ({
title: i18n.ts.timeline,
icon: src === 'local' ? 'ti ti-planet' : src === 'social' ? 'ti ti-rocket' : src === 'global' ? 'ti ti-world' : 'ti ti-home',
icon: src === 'local' ? 'ti ti-planet' : src === 'media' ? 'ti ti-photo' : src === 'social' ? 'ti ti-rocket' : src === 'cat' ? 'ti ti-cat' : src === 'global' ? 'ti ti-world' : 'ti ti-home',
})));
</script>