fix: revert timelines loading optimization

This commit is contained in:
patak 2022-12-23 06:02:13 +01:00
parent 2e5270f453
commit ef4a240800
24 changed files with 87 additions and 146 deletions

View file

@ -17,11 +17,15 @@ const tabs = $computed(() => [
display: t('tab.news'),
},
// This section can only be accessed after logging in
{
to: `/${currentServer.value}/explore/users`,
display: t('tab.for_you'),
disabled: !isMastoInitialised.value || !currentUser.value,
},
...invoke(() => currentUser.value
? [
{
to: `/${currentServer.value}/explore/users`,
display: t('tab.for_you'),
},
]
: [],
),
] as const)
</script>
@ -37,6 +41,6 @@ const tabs = $computed(() => [
<template #header>
<CommonRouteTabs replace :options="tabs" />
</template>
<NuxtPage v-if="isMastoInitialised" />
<NuxtPage />
</MainContent>
</template>