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);
|
||||
}
|
||||
|
||||
const headerTabs = $computed(() => user ? [{
|
||||
const headerTabs = $computed(() => [{
|
||||
key: 'home',
|
||||
title: i18n.ts.overview,
|
||||
icon: 'fas fa-home',
|
||||
}, ...($i && ($i.id === user.id)) || user.publicReactions ? [{
|
||||
}, ...($i && ($i.id === user?.id)) || user?.publicReactions ? [{
|
||||
key: 'reactions',
|
||||
title: i18n.ts.reaction,
|
||||
icon: 'fas fa-laugh',
|
||||
|
@ -86,7 +86,7 @@ const headerTabs = $computed(() => user ? [{
|
|||
key: 'gallery',
|
||||
title: i18n.ts.gallery,
|
||||
icon: 'fas fa-icons',
|
||||
}] : null);
|
||||
}]);
|
||||
|
||||
definePageMetadata(computed(() => user ? {
|
||||
icon: 'fas fa-user',
|
||||
|
|
Loading…
Reference in a new issue