mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
fix: 🐛 Remove header tabs if guest not enabled and not logged in
This commit is contained in:
parent
14ed30b233
commit
a6b62a0e68
@ -126,12 +126,7 @@ const headerActions = $computed(() => [{
|
||||
title: i18n.ts.antennas,
|
||||
iconOnly: true,
|
||||
handler: chooseAntenna,
|
||||
}, /* {
|
||||
icon: 'fas fa-satellite-dish',
|
||||
title: i18n.ts.channel,
|
||||
iconOnly: true,
|
||||
handler: chooseChannel,
|
||||
}, */ {
|
||||
}, {
|
||||
icon: 'fas fa-calendar-alt',
|
||||
title: i18n.ts.jumpToSpecifiedDate,
|
||||
iconOnly: true,
|
||||
@ -168,7 +163,7 @@ const headerTabs = $computed(() => [{
|
||||
iconOnly: true,
|
||||
}] : [])]);
|
||||
|
||||
const headerTabsWhenNotLogin = $computed(() => [
|
||||
let headerTabsWhenNotLogin = $computed(() => [
|
||||
...(isLocalTimelineAvailable ? [{
|
||||
key: 'local',
|
||||
title: i18n.ts._timelines.local,
|
||||
@ -183,6 +178,10 @@ const headerTabsWhenNotLogin = $computed(() => [
|
||||
}] : []),
|
||||
]);
|
||||
|
||||
if (!enableGuestTimeline) {
|
||||
headerTabsWhenNotLogin = [];
|
||||
}
|
||||
|
||||
definePageMetadata(computed(() => ({
|
||||
title: i18n.ts.timeline,
|
||||
icon: src === 'local' ? 'fas fa-user-group' : src === 'social' ? 'fas fa-handshake-simple' : src === 'recommended' ? 'fas fa-signs-post' : src === 'global' ? 'fas fa-globe' : 'fas fa-home',
|
||||
|
Loading…
Reference in New Issue
Block a user