forked from FoundKeyGang/FoundKey
fix: don't provide null for header tabs
This commit is contained in:
parent
b28c34b57d
commit
1592420406
1 changed files with 3 additions and 3 deletions
|
@ -66,11 +66,11 @@ function menu(ev) {
|
||||||
os.popupMenu(getUserMenu(user), ev.currentTarget ?? ev.target);
|
os.popupMenu(getUserMenu(user), ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
const headerTabs = $computed(() => user ? [{
|
const headerTabs = $computed(() => [{
|
||||||
key: 'home',
|
key: 'home',
|
||||||
title: i18n.ts.overview,
|
title: i18n.ts.overview,
|
||||||
icon: 'fas fa-home',
|
icon: 'fas fa-home',
|
||||||
}, ...($i && ($i.id === user.id)) || user.publicReactions ? [{
|
}, ...($i && ($i.id === user?.id)) || user?.publicReactions ? [{
|
||||||
key: 'reactions',
|
key: 'reactions',
|
||||||
title: i18n.ts.reaction,
|
title: i18n.ts.reaction,
|
||||||
icon: 'fas fa-laugh',
|
icon: 'fas fa-laugh',
|
||||||
|
@ -86,7 +86,7 @@ const headerTabs = $computed(() => user ? [{
|
||||||
key: 'gallery',
|
key: 'gallery',
|
||||||
title: i18n.ts.gallery,
|
title: i18n.ts.gallery,
|
||||||
icon: 'fas fa-icons',
|
icon: 'fas fa-icons',
|
||||||
}] : null);
|
}]);
|
||||||
|
|
||||||
definePageMetadata(computed(() => user ? {
|
definePageMetadata(computed(() => user ? {
|
||||||
icon: 'fas fa-user',
|
icon: 'fas fa-user',
|
||||||
|
|
Loading…
Reference in a new issue