feat: improve explore loading

This commit is contained in:
patak 2022-12-22 21:25:46 +01:00
parent 4d8b402b04
commit 84ea17e0cf
3 changed files with 24 additions and 20 deletions

View file

@ -17,15 +17,11 @@ const tabs = $computed(() => [
display: t('tab.news'),
},
// This section can only be accessed after logging in
...invoke(() => currentUser.value
? [
{
to: `/${currentServer.value}/explore/users`,
display: t('tab.for_you'),
},
]
: [],
),
{
to: `/${currentServer.value}/explore/users`,
display: t('tab.for_you'),
disabled: !isMastoInitialised.value || !currentUser.value,
},
] as const)
</script>