Skip to content

Commit 61f0206

Browse files
committed
Rename "Dashboard" the "Admin Pannel"
1 parent eee4e6f commit 61f0206

5 files changed

Lines changed: 4 additions & 31 deletions

File tree

app/assets/components/NavBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const auth = useAuthStore()
2323
:avatar="auth.user.avatar"
2424
:meta="auth.user.user_name">
2525
<UFNavBarUserCardButton
26-
label="Dashboard"
26+
label="Admin Panel"
2727
@click="router.push({ name: 'admin.dashboard' })" />
2828
<UFNavBarUserCardButton
2929
label="My Account"

app/assets/layouts/LayoutDashboard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { SidebarMenuItems } from '@userfrosting/sprinkle-admin/components'
77
<template>
88
<NavBar />
99
<UFSideBar>
10-
<UFSideBarLabel label="NAVIGATION" />
10+
<UFSideBarLabel label="Admin Panel" />
1111
<SidebarMenuItems />
12-
<UFSideBarItem :to="{ name: 'test' }" faIcon="person-digging" label="Test" />
1312
</UFSideBar>
1413
<UFMainContent>
1514
<RouterView />

app/assets/router/index.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,9 @@ const router = createRouter({
3030
]
3131
},
3232
{
33-
path: '',
33+
path: '/admin',
3434
component: () => import('../layouts/LayoutDashboard.vue'),
35-
children: [
36-
...AdminRoutes,
37-
{
38-
path: '/test',
39-
meta: {
40-
auth: {
41-
redirect: { name: 'account.login' }
42-
}
43-
},
44-
children: [
45-
{
46-
path: '',
47-
name: 'test',
48-
component: () => import('../views/TestView.vue')
49-
},
50-
{
51-
path: 't/:slug',
52-
name: 'test.slug',
53-
component: () => import('../views/TestViewDetail.vue')
54-
}
55-
]
56-
}
57-
]
35+
children: [...AdminRoutes]
5836
}
5937
]
6038
})

app/assets/views/TestView.vue

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/assets/views/TestViewDetail.vue

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)