|
1 | 1 | import { Component, OnInit, Input, ViewChild, Output, EventEmitter } from '@angular/core';
|
2 | 2 | import { TestResult } from '../../../../shared/models/test-result';
|
3 |
| -import { ActivatedRoute } from '@angular/router'; |
| 3 | +import { ActivatedRoute, Router } from '@angular/router'; |
4 | 4 | import { FinalResult } from '../../../../shared/models/final-result';
|
5 | 5 | import { Issue } from '../../../../shared/models/issue';
|
6 | 6 | import { User } from '../../../../shared/models/user';
|
@@ -55,10 +55,11 @@ export class ResultGridComponent implements OnInit {
|
55 | 55 | private testrunService: TestRunService,
|
56 | 56 | private testService: TestService,
|
57 | 57 | private route: ActivatedRoute,
|
| 58 | + private router: Router, |
58 | 59 | public userService: UserService,
|
59 | 60 | private finalResultService: FinalResultService,
|
60 | 61 | private permissions: PermissionsService,
|
61 |
| - private issueService: IssueService ) { } |
| 62 | + private issueService: IssueService) { } |
62 | 63 |
|
63 | 64 | async ngOnInit() {
|
64 | 65 | this.projectId = this.route.snapshot.params.projectId;
|
@@ -167,6 +168,10 @@ export class ResultGridComponent implements OnInit {
|
167 | 168 | }
|
168 | 169 | }
|
169 | 170 |
|
| 171 | + rowClicked($event: TestResult) { |
| 172 | + this.router.navigate([`/project/${$event.project_id}/testrun/${$event.test_run_id}`]); |
| 173 | + } |
| 174 | + |
170 | 175 | wasClosed() {
|
171 | 176 | this.hideCreateModal = true;
|
172 | 177 | this.issueFailReason = undefined;
|
|
0 commit comments