diff --git a/app.vue b/app.vue
index ad38e055..6bb6396c 100644
--- a/app.vue
+++ b/app.vue
@@ -13,7 +13,7 @@ const { params } = useRoute()
-
+
diff --git a/components/common/CommonRouteTabs.vue b/components/common/CommonRouteTabs.vue
index 65d8864b..d596b889 100644
--- a/components/common/CommonRouteTabs.vue
+++ b/components/common/CommonRouteTabs.vue
@@ -5,6 +5,7 @@ const { options, command, replace, preventScrollTop = false } = $defineProps<{
options: {
to: RouteLocationRaw
display: string
+ disabled?: boolean
name?: string
icon?: string
}[]
@@ -28,18 +29,25 @@ useCommands(() => command
-
- {{ option.display }}
-
+
+ {{ option.display }}
+
+
+ {{ option.display }}
+
+
diff --git a/pages/[[server]]/explore.vue b/pages/[[server]]/explore.vue
index 1c139d2a..ca3446a7 100644
--- a/pages/[[server]]/explore.vue
+++ b/pages/[[server]]/explore.vue
@@ -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)