Skip to content

Commit

Permalink
EUI-9165: Yes/no field fix (#1669)
Browse files Browse the repository at this point in the history
Fix bug where nothing is shown for the yes/no field if there is no `caseField` label (should fall back on the field value).
  • Loading branch information
Daniel-Lam authored Feb 5, 2024
1 parent c568eb9 commit c0a70b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
## RELEASE NOTES
### Version 7.0.7-welsh-translation-yes-no-field-fix
**EUI-9165** Re-tag for re-release of fix, following merge conflict resolution with latest from `master`

### Version 7.0.7
**EXUI-1287** MV Upgrade to v3.0.2

### Version 7.0.6-welsh-translation-yes-no-field-fix
**EUI-9165** Fix bug where nothing is shown for the yes/no field if there is no `caseField` label (should fall back on the field value)

### Version 7.0.6-case-flags-v2-1-release
**EUI-9048** Re-tag for re-release of Case Flags v2.1, following merge conflict resolution with latest from `master`

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": "7.0.8-comprees-ls",
"version": "7.0.7-welsh-translation-yes-no-field-fix",
"engines": {
"node": ">=18.17.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": "7.0.8-compress-ls",
"version": "7.0.7-welsh-translation-yes-no-field-fix",
"engines": {
"node": ">=18.17.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div [id]="createElementId('radio')">
<div class="multiple-choice" *ngFor="let value of yesNoValues" [ngClass]="{selected: yesNoControl.value === value}">
<input class="form-control" [id]="createElementId(value)" [attr.name]="id()" [name]="id()" type="radio" [formControl]="yesNoControl" [value]="value">
<label class="form-label" [for]="createElementId(value)">{{caseField.label | rpxTranslate : null : value}}</label>
<label class="form-label" [for]="createElementId(value)">{{caseField.label ? (caseField.label | rpxTranslate:null:value) : value}}</label>
</div>
</div>
</fieldset>
Expand Down

0 comments on commit c0a70b9

Please sign in to comment.