Skip to content

Commit 41bda47

Browse files
added link to testrun on test history page
1 parent 7fe7d0b commit 41bda47

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aquality-tracking-ui",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

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)