Skip to content

Commit

Permalink
Merge pull request #372 from cobbler/feature/group-actions
Browse files Browse the repository at this point in the history
Cobbler-Frontend: Groups actions under /actions route
  • Loading branch information
SchoolGuy authored Nov 13, 2024
2 parents 802a7a8 + 10b00fd commit de00cda
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 56 deletions.
101 changes: 55 additions & 46 deletions projects/cobbler-frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,61 @@ export const routes: Routes = [
component: AppManageComponent,
canActivate: [AuthGuardService],
},
{
path: 'actions',
children: [
{
path: 'import',
component: ImportDVDComponent,
canActivate: [AuthGuardService],
},
{
path: 'sync',
component: SyncComponent,
canActivate: [AuthGuardService],
},
{
path: 'reposync',
component: RepoSyncComponent,
canActivate: [AuthGuardService],
},
{
path: 'buildiso',
component: BuildISOComponent,
canActivate: [AuthGuardService],
},
{
path: 'check',
component: CheckSysComponent,
canActivate: [AuthGuardService],
},
{
path: 'status',
component: StatusComponent,
canActivate: [AuthGuardService],
},
{
path: 'hardlink',
component: HardlinkComponent,
canActivate: [AuthGuardService],
},
{
path: 'mkloaders',
component: MkloadersComponent,
canActivate: [AuthGuardService],
},
{
path: 'validate-autoinstalls',
component: ValidateAutoinstallsComponent,
canActivate: [AuthGuardService],
},
{
path: 'replicate',
component: ReplicateComponent,
canActivate: [AuthGuardService],
},
],
},
{
path: 'items',
children: [
Expand Down Expand Up @@ -176,42 +231,6 @@ export const routes: Routes = [
component: SettingsViewComponent,
canActivate: [AuthGuardService],
},
{
path: 'import',
component: ImportDVDComponent,
canActivate: [AuthGuardService],
},
{ path: 'sync', component: SyncComponent, canActivate: [AuthGuardService] },
{
path: 'reposync',
component: RepoSyncComponent,
canActivate: [AuthGuardService],
},
{
path: 'buildiso',
component: BuildISOComponent,
canActivate: [AuthGuardService],
},
{
path: 'check',
component: CheckSysComponent,
canActivate: [AuthGuardService],
},
{
path: 'status',
component: StatusComponent,
canActivate: [AuthGuardService],
},
{
path: 'hardlink',
component: HardlinkComponent,
canActivate: [AuthGuardService],
},
{
path: 'mkloaders',
component: MkloadersComponent,
canActivate: [AuthGuardService],
},
{
path: 'events',
component: AppEventsComponent,
Expand All @@ -222,16 +241,6 @@ export const routes: Routes = [
component: SignaturesComponent,
canActivate: [AuthGuardService],
},
{
path: 'validate-autoinstalls',
component: ValidateAutoinstallsComponent,
canActivate: [AuthGuardService],
},
{
path: 'replicate',
component: ReplicateComponent,
canActivate: [AuthGuardService],
},
{ path: '404', component: NotFoundComponent },
{ path: '**', redirectTo: '/404' },
];
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/import']"
[routerLink]="['/actions', 'import']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -143,7 +143,7 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/sync']"
[routerLink]="['/actions', 'sync']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -152,23 +152,23 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/reposync']"
[routerLink]="['/actions', 'reposync']"
(click)="sidenav.close()"
><b class="symbol">&#9881;</b>
Reposync
</a>
<a
mat-list-item
class="nav-link"
[routerLink]="['/buildiso']"
[routerLink]="['/actions', 'buildiso']"
(click)="sidenav.close()"
><b class="symbol">&#9881;</b>
Build ISO
</a>
<a
mat-list-item
class="nav-link"
[routerLink]="['/hardlink']"
[routerLink]="['/actions', 'hardlink']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -177,7 +177,7 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/mkloaders']"
[routerLink]="['/actions', 'mkloaders']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -186,7 +186,7 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/validate-autoinstalls']"
[routerLink]="['/actions', 'validate-autoinstalls']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -195,7 +195,7 @@ <h2 matSubheader>Actions</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/replicate']"
[routerLink]="['/actions', 'replicate']"
(click)="sidenav.close()"
>
<b class="symbol">&#9881;</b>
Expand All @@ -206,7 +206,7 @@ <h2 matSubheader>Cobbler</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/check']"
[routerLink]="['/actions', 'check']"
(click)="sidenav.close()"
>
<b class="symbol">&#8646;</b>
Expand All @@ -215,7 +215,7 @@ <h2 matSubheader>Cobbler</h2>
<a
mat-list-item
class="nav-link"
[routerLink]="['/status']"
[routerLink]="['/actions', 'status']"
(click)="sidenav.close()"
>
<b class="symbol">&#8646;</b>
Expand Down

0 comments on commit de00cda

Please sign in to comment.