Skip to content

Commit 274d3bc

Browse files
Merge remote-tracking branch 'origin/fix/issue-136' into hotfixes
2 parents d62e4b9 + 45165e2 commit 274d3bc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/app/pages/project/project-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ <h2>Select Project</h2>
1414
(closed)="wasClosed()"></app-modal>
1515

1616
<table-filter *ngIf="projects && users && columns" [data]="projects" [columns]="columns" [defaultSortBy]="defSort"
17-
(action)="handleAction($event)" [queryParams]="true" [allowDelete]="canCreate" (dataChange)="updateProj($event)"
18-
(rowClick)="rowClicked($event)" rowsOnPage="20"></table-filter>
17+
(action)="handleAction($event)" [queryParams]="true" [allowDelete]="canCreate" [urlGenerator]="generateProjectUrl"
18+
(dataChange)="updateProj($event)" (rowClick)="rowClicked($event)" rowsOnPage="20"></table-filter>

src/app/pages/project/project-list.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ export class ProjectListComponent implements OnInit {
4141
await this.buildColumns();
4242
}
4343

44+
generateProjectUrl(entity: Project) {
45+
return `/project/${entity.id}`;
46+
}
47+
4448
rowClicked(project: Project) {
45-
this.router.navigate([`/project/${project.id}`]);
49+
this.router.navigate([this.generateProjectUrl(project)]);
4650
}
4751

4852
async updateProj($event) {

0 commit comments

Comments
 (0)