We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0197929 commit 8b40718Copy full SHA for 8b40718
resources/js/composables/useAppLayout.ts
@@ -60,12 +60,10 @@ export function useAppLayout() {
60
},
61
],
62
63
- ];
64
-
65
- if (page.props.auth.isAdmin) {
66
- items.push({
+ {
67
label: 'Admin',
68
lucideIcon: Lock,
+ visible: page.props.auth.isAdmin,
69
items: [
70
{
71
label: 'Dashboard',
@@ -80,8 +78,8 @@ export function useAppLayout() {
80
78
active: currentRoute.value == 'admin.users.index',
81
79
82
83
- });
84
- }
+ },
+ ];
85
86
return items;
87
});
0 commit comments