Skip to content

Commit 45165e2

Browse files
fixed issue #140
1 parent a16b7ad commit 45165e2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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) {

src/app/pages/project/suite/suite-view/testsuite.view.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export class TestSuiteViewComponent implements OnInit {
181181

182182
generateTestUrl(entity: Test) {
183183
return `/project/${entity.project_id}/test/${entity.id}`;
184-
//return `/project/${this.projectId}/test/${entity.id}`;
185184
}
186185

187186
rowClicked($event: Test) {

0 commit comments

Comments
 (0)