Skip to content

Commit

Permalink
EUI-8693 QM navigate to query list
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbenjamin-hmcts committed Jul 26, 2023
1 parent 2deeb8a commit 0c34b09
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## RELEASE NOTES
### Version 6.16.0-query-management-navigate-back-to-query-list
**EUI-8693** Query management navigate back to query list from query details

### Version 6.16.0-query-management-update-mock-data
**EUI-8636** Query management update mock data to support CCD

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "6.16.0-query-management-update-mock-data",
"version": "6.16.0-query-management-navigate-back-to-query-list",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion projects/ccd-case-ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "6.16.0-query-management-update-mock-data",
"version": "6.16.0-query-management-navigate-back-to-query-list",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<ng-container *ngIf="query">
<p>
<a class="govuk-link" href="javascript:void(0)" (click)="onBack()">{{ 'Back to query list' | rpxTranslate }}</a>
</p>
<div>
<table class="govuk-table query-details-table" [attr.aria-describedby]="'Details of the query' | rpxTranslate">
<caption class="govuk-table__caption govuk-table__caption--l">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('QueryDetailsComponent', () => {
expect(component).toBeTruthy();
});

it('should emit event on clcking back to queries', () => {
it('should emit event on clcking back to query list', () => {
spyOn(component.backClicked, 'emit');
component.onBack();
expect(component.backClicked.emit).toHaveBeenCalled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export class QueryDetailsComponent {
const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails'));
return userDetails && userDetails.roles
&& !(userDetails.roles.includes('pui-case-manager')
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')))
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

<ng-template #singleQueryDetails>
<br>
<p>
<a class="govuk-link" href="javascript:void(0)">{{ 'Back to queries' | rpxTranslate }}</a>
</p>

<ccd-query-details
[query]="query"
(backClicked)="showQueryList = true"
Expand Down

0 comments on commit 0c34b09

Please sign in to comment.