feat: improve explore loading
This commit is contained in:
parent
4d8b402b04
commit
84ea17e0cf
3 changed files with 24 additions and 20 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue