File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ <h2>Select Project</h2>
14
14
(closed) ="wasClosed() "> </ app-modal >
15
15
16
16
< 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 >
Original file line number Diff line number Diff line change @@ -41,8 +41,12 @@ export class ProjectListComponent implements OnInit {
41
41
await this . buildColumns ( ) ;
42
42
}
43
43
44
+ generateProjectUrl ( entity : Project ) {
45
+ return `/project/${ entity . id } ` ;
46
+ }
47
+
44
48
rowClicked ( project : Project ) {
45
- this . router . navigate ( [ `/project/ ${ project . id } ` ] ) ;
49
+ this . router . navigate ( [ this . generateProjectUrl ( project ) ] ) ;
46
50
}
47
51
48
52
async updateProj ( $event ) {
Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ export class TestSuiteViewComponent implements OnInit {
181
181
182
182
generateTestUrl ( entity : Test ) {
183
183
return `/project/${ entity . project_id } /test/${ entity . id } ` ;
184
- //return `/project/${this.projectId}/test/${entity.id}`;
185
184
}
186
185
187
186
rowClicked ( $event : Test ) {
You can’t perform that action at this time.
0 commit comments