File tree Expand file tree Collapse file tree 3 files changed +26
-17
lines changed
Expand file tree Collapse file tree 3 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -216,10 +216,10 @@ onMounted(() => {
216216 <SidebarMenu >
217217 <SidebarMenuItem >
218218 <SidebarMenuButton
219- @click =" navigateTo('/global- settings')"
220- :is-active =" router.currentRoute.value.path === '/global- settings'"
219+ @click =" navigateTo('/admin/ settings')"
220+ :is-active =" router.currentRoute.value.path === '/admin/ settings'"
221221 class =" w-full justify-start"
222- :aria-current =" router.currentRoute.value.path === '/global- settings' ? 'page' : undefined"
222+ :aria-current =" router.currentRoute.value.path === '/admin/ settings' ? 'page' : undefined"
223223 >
224224 <FileSliders class =" mr-2 h-4 w-4 shrink-0" />
225225 <span >{{ t('sidebar.adminArea.globalSettings') }}</span >
Original file line number Diff line number Diff line change @@ -68,13 +68,18 @@ const routes = [
6868 meta : { requiresSetup : true } ,
6969 } ,
7070 {
71- path : '/global-settings' ,
72- name : 'GlobalSettings' ,
73- component : ( ) => import ( '../views/GlobalSettings.vue' ) ,
71+ path : '/admin' ,
7472 meta : {
7573 requiresSetup : true ,
7674 requiresRole : 'global_admin'
7775 } ,
76+ children : [
77+ {
78+ path : 'settings' ,
79+ name : 'AdminSettings' ,
80+ component : ( ) => import ( '../views/GlobalSettings.vue' ) ,
81+ } ,
82+ ] ,
7883 } ,
7984 {
8085 path : '/:pathMatch(.*)*' ,
Original file line number Diff line number Diff line change 1- <template >
2- <div class =" container mx-auto p-6" >
3- <h1 class =" text-3xl font-bold mb-4" >
4- {{ t('globalSettings.title') }}
5- </h1 >
6- <p class =" text-gray-600" >
7- {{ t('globalSettings.description') }}
8- </p >
9- </div >
10- </template >
11-
121<script setup lang="ts">
2+ import DashboardLayout from ' @/components/DashboardLayout.vue'
133import { useI18n } from ' vue-i18n'
144
155const { t } = useI18n ()
166 </script >
7+
8+ <template >
9+ <DashboardLayout :title =" t('globalSettings.title')" >
10+ <div class =" rounded-xl border bg-card text-card-foreground shadow" >
11+ <div class =" p-6" >
12+ <h2 class =" text-2xl font-bold" >{{ t('globalSettings.title') }}</h2 >
13+ <p class =" text-muted-foreground mt-2" >{{ t('globalSettings.description') }}</p >
14+ <div class =" mt-6" >
15+ <p class =" text-sm text-muted-foreground" >This page is under construction.</p >
16+ </div >
17+ </div >
18+ </div >
19+ </DashboardLayout >
20+ </template >
You can’t perform that action at this time.
0 commit comments