Skip to content

Commit

Permalink
Merge pull request #350 from cobbler/fix/item-detail-views
Browse files Browse the repository at this point in the history
Fix: Item Detail Views not showing
  • Loading branch information
SchoolGuy authored Nov 1, 2024
2 parents bf3ae0b + ee40d61 commit c879cb0
Showing 1 changed file with 50 additions and 70 deletions.
120 changes: 50 additions & 70 deletions projects/cobbler-frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,121 +56,101 @@ export const routes: Routes = [
path: 'distro',
component: DistrosOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: DistroEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'distro/:name',
component: DistroEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'profile',
component: ProfileOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: ProfileEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'profile/:name',
component: ProfileEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'system',
component: SystemOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: SystemEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'system/:name',
component: SystemEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'repository',
component: RepositoryOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: RepositoryEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'repository/:name',
component: RepositoryEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'image',
component: ImageOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: ImageEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'image/:name',
component: ImageEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'template',
component: TemplateOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: TemplateEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'template/:name',
component: TemplateEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'snippet',
component: SnippetOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: SnippetEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'snippet/:name',
component: SnippetEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'management-class',
component: ManagementClassOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: ManagementClassEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'management-class/:name',
component: ManagementClassEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'package',
component: PackageOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: PackageEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'package/:name',
component: PackageEditComponent,
canActivate: [AuthGuardService],
},
{
path: 'file',
component: FileOverviewComponent,
canActivate: [AuthGuardService],
children: [
{
path: ':name',
component: FileEditComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'file/:name',
component: FileEditComponent,
canActivate: [AuthGuardService],
},
],
},
Expand Down

0 comments on commit c879cb0

Please sign in to comment.