From 829fc93c98711d3a5609cbf388682528fb23c9a5 Mon Sep 17 00:00:00 2001 From: Flycro Date: Thu, 21 Mar 2024 11:28:18 +0100 Subject: [PATCH] wip: Try reenabe Nav Links + Client --- nuxt/components/{Navigation.vue => Navigation.client.vue} | 4 ++-- nuxt/components/{UserDropdown.vue => UserDropdown.client.vue} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename nuxt/components/{Navigation.vue => Navigation.client.vue} (93%) rename nuxt/components/{UserDropdown.vue => UserDropdown.client.vue} (91%) diff --git a/nuxt/components/Navigation.vue b/nuxt/components/Navigation.client.vue similarity index 93% rename from nuxt/components/Navigation.vue rename to nuxt/components/Navigation.client.vue index 1480e99..56f8059 100644 --- a/nuxt/components/Navigation.vue +++ b/nuxt/components/Navigation.client.vue @@ -22,7 +22,7 @@ const links: NavigationTree[] = [ }, ] -/* if (authStore.user?.roles.includes('admin')) { +if (authStore.user?.roles.includes('admin')) { links.push({ label: 'Admin', to: '/admin', @@ -40,7 +40,7 @@ const links: NavigationTree[] = [ }, ], }) -} */ +}