Skip to content

Commit c6e0c46

Browse files
Merge branch 'fix/issue-145' into fix/issue-136
2 parents 8c5efbc + 41bda47 commit c6e0c46

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/app/pages/project/results/results-grid/results-grid.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
(dataChange)="resultUpdate($event)"
2727
(bulkChanges)="bulkResultUpdate($event)"
2828
(lookupCreation)="handleLookupCreation($event)"
29-
(lookupAction)="handleLookupAction($event)"></table-filter>
29+
(lookupAction)="handleLookupAction($event)"
30+
(rowClick)="rowClicked($event)"></table-filter>
3031
</div>

src/app/pages/project/results/results-grid/results-grid.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit, Input, ViewChild, Output, EventEmitter } from '@angular/core';
22
import { TestResult } from '../../../../shared/models/test-result';
3-
import { ActivatedRoute } from '@angular/router';
3+
import { ActivatedRoute, Router } from '@angular/router';
44
import { FinalResult } from '../../../../shared/models/final-result';
55
import { Issue } from '../../../../shared/models/issue';
66
import { User } from '../../../../shared/models/user';
@@ -55,10 +55,11 @@ export class ResultGridComponent implements OnInit {
5555
private testrunService: TestRunService,
5656
private testService: TestService,
5757
private route: ActivatedRoute,
58+
private router: Router,
5859
public userService: UserService,
5960
private finalResultService: FinalResultService,
6061
private permissions: PermissionsService,
61-
private issueService: IssueService ) { }
62+
private issueService: IssueService) { }
6263

6364
async ngOnInit() {
6465
this.projectId = this.route.snapshot.params.projectId;
@@ -167,6 +168,10 @@ export class ResultGridComponent implements OnInit {
167168
}
168169
}
169170

171+
rowClicked($event: TestResult) {
172+
this.router.navigate([`/project/${$event.project_id}/testrun/${$event.test_run_id}`]);
173+
}
174+
170175
wasClosed() {
171176
this.hideCreateModal = true;
172177
this.issueFailReason = undefined;

0 commit comments

Comments
 (0)