Skip to content

Commit

Permalink
Optional text for welsh in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
AbuNavsa committed Dec 5, 2023
1 parent 847b5ae commit 2169464
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions runner/src/server/plugins/engine/models/viewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,15 @@ function Item(
let componentLabel = component.localisedString(component.title);

if (
component.options.required == false &&
!componentLabel.toLowerCase().endsWith("(optional)")
component.options.required === false &&
!componentLabel.toLowerCase().endsWith("(optional)") &&
!componentLabel.toLowerCase().endsWith("(dewisol)")
) {
componentLabel += " (optional)";
if (model?.def?.metadata?.isWelsh) {
componentLabel += " (dewisol)";
} else {
componentLabel += " (optional)";
}
}

return {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=0.1.217
VERSION=0.1.218

0 comments on commit 2169464

Please sign in to comment.