feat(admin): improve responsive management pages
This commit is contained in:
@@ -14,8 +14,16 @@ export const PERMISSION_PAGES: readonly PermissionPage[] = [
|
||||
{ path: '/rooms', permission: 'room:view' },
|
||||
{ path: '/occupancies', permission: 'occupancy:view' },
|
||||
{ path: '/teacher-workspace', permission: 'teacher-workspace:view' },
|
||||
{ path: '/students', permission: 'student:view', matches: (p) => p === '/students' || /^\/students\/\d+\/profile$/.test(p) },
|
||||
{ path: '/classes', permission: 'class:view', matches: (p) => p === '/classes' || /^\/classes\/\d+$/.test(p) },
|
||||
{
|
||||
path: '/students',
|
||||
permission: 'student:view',
|
||||
matches: (p) => p === '/students' || /^\/students\/\d+\/profile$/.test(p),
|
||||
},
|
||||
{
|
||||
path: '/classes',
|
||||
permission: 'class:view',
|
||||
matches: (p) => p === '/classes' || /^\/classes\/\d+$/.test(p),
|
||||
},
|
||||
{ path: '/attendance', permission: 'attendance:view' },
|
||||
{ path: '/schedules', permission: 'schedule:view' },
|
||||
{ path: '/classroom-schedule', permission: 'rental:view' },
|
||||
|
||||
Reference in New Issue
Block a user