@gov-cy/govcy-express-services 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gov-cy/govcy-express-services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.",
|
|
5
5
|
"author": "DMRID - DSF Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -242,11 +242,16 @@ function findFormElement(sections = []) {
|
|
|
242
242
|
* @returns {object}
|
|
243
243
|
*/
|
|
244
244
|
function buildStatusResult(page, pageType, pageUrl, hasData, status, conditionResult = null) {
|
|
245
|
+
let title = page?.pageData?.title || {};
|
|
246
|
+
if (pageType === "updateMyDetails") {
|
|
247
|
+
title = govcyResources.staticResources.text.updateMyDetailsTitle;
|
|
248
|
+
} else if (pageType === "multipleThings") {
|
|
249
|
+
title = page?.multipleThings?.listPage?.title || title;
|
|
250
|
+
}
|
|
251
|
+
|
|
245
252
|
const result = {
|
|
246
253
|
pageUrl,
|
|
247
|
-
title
|
|
248
|
-
? govcyResources.staticResources.text.updateMyDetailsTitle
|
|
249
|
-
: (page?.pageData?.title || {}),
|
|
254
|
+
title,
|
|
250
255
|
type: pageType,
|
|
251
256
|
status,
|
|
252
257
|
hasData
|