diff --git a/components/Menu.vue b/components/Menu.vue
index e74daa1..e17f02b 100644
--- a/components/Menu.vue
+++ b/components/Menu.vue
@@ -41,7 +41,7 @@
{
return `/login?redirect=${encodeURIComponent(redirectPath)}`
})
+// Determine which page we're currently on to hide self-referencing links
+const currentPathNormalized = computed(() => {
+ const path = props.currentPath || route.fullPath
+ // Remove query params and trailing slashes for comparison
+ return path.split('?')[0].replace(/\/$/, '')
+})
+
+const isOnHomePage = computed(() => currentPathNormalized.value === '' || currentPathNormalized.value === '/')
+const isOnProfilePage = computed(() => currentPathNormalized.value === '/profile')
+const isOnAdminPage = computed(() => currentPathNormalized.value === '/admin')
+const isOnUsersPage = computed(() => currentPathNormalized.value === '/users')
+const isOnLoginPage = computed(() => currentPathNormalized.value === '/login')
+const isOnRegisterPage = computed(() => currentPathNormalized.value === '/register')
+
// Toggle menu with debounce to prevent accidental double-taps
const toggleMenu = () => {
if (isToggling.value) return
diff --git a/pages/admin.vue b/pages/admin.vue
index c62e946..a8ae4e9 100644
--- a/pages/admin.vue
+++ b/pages/admin.vue
@@ -8,8 +8,8 @@
@@ -411,6 +411,11 @@ definePageMeta({
middleware: 'auth'
})
+// Check authentication status
+const { data: authData } = await useFetch('/api/auth/verify')
+const isAuthenticated = computed(() => authData.value?.authenticated || false)
+const isAdmin = computed(() => authData.value?.isAdmin || false)
+
const route = useRoute()
// Fetch all sermons for management (including archived)
diff --git a/pages/forgot-password.vue b/pages/forgot-password.vue
index cb0a847..59b9d70 100644
--- a/pages/forgot-password.vue
+++ b/pages/forgot-password.vue
@@ -1,9 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
Reset Password
{{ stepMessage }}
@@ -171,6 +188,11 @@