Fix resource pool detail path.

This commit is contained in:
grossmj 2023-11-23 12:23:39 +10:00
parent 607c190a9a
commit 0a48b46754
3 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ const routes: Routes = [
{ path: 'bundled', component: BundledControllerFinderComponent },
{ path: 'controller/:controller_id/login', component: LoginComponent },
{ path: 'controller/:controller_id/loggeduser', component: LoggedUserComponent },
{path : 'controller/:controller_id/image-manager', component: ImageManagerComponent},
{ path : 'controller/:controller_id/image-manager', component: ImageManagerComponent},
{
path: 'controller/:controller_id/projects',
component: ProjectsComponent,
@ -107,7 +107,7 @@ const routes: Routes = [
controller: ControllerResolve},
},
{
path: 'controller/:controller_id/management/resourcePools/:pool_id',
path: 'controller/:controller_id/management/pools/:pool_id',
component: ResourcePoolDetailsComponent,
canActivate: [LoginGuard],
resolve: {

View File

@ -5,7 +5,7 @@
mat-icon-button
matTooltip="back to resource pools management"
mattooltipclass="custom-tooltip"
[routerLink]="['/controller', controller.id, 'management', 'resourcePools']">
[routerLink]="['/controller', controller.id, 'management', 'pools']">
<mat-icon aria-label="back to resource pools management">keyboard_arrow_left</mat-icon>
</a>
<h1 class="col">Resource pool {{pool.name}}</h1>

View File

@ -41,7 +41,7 @@
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name</th>
<td mat-cell *matCellDef="let element"><a class="table-link"
routerLink="/controller/{{controller.id}}/management/resourcePools/{{element.resource_pool_id}}">{{element.name}}</a>
routerLink="/controller/{{controller.id}}/management/pools/{{element.resource_pool_id}}">{{element.name}}</a>
</td>
</ng-container>