hof 22.7.0-service-paused-beta.11 → 22.7.0-service-paused-beta.12

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.
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "service-paused": {
31
31
  "title": "Sorry, the service is unavailable",
32
- "message": "This service is temporarily unavailable",
33
- "answers-saved": "Your answers have not been saved"
32
+ "message": "This service is temporarily unavailable.",
33
+ "answers-saved": "Your answers have not been saved."
34
34
  }
35
35
  }
@@ -1,12 +1,4 @@
1
1
  {{<error}}
2
- {{$journeyHeader}}
3
- {{#t}}journey.header{{/t}}
4
- {{/journeyHeader}}
5
-
6
- {{$propositionHeader}}
7
- {{> partials-navigation}}
8
- {{/propositionHeader}}
9
-
10
2
  {{$content}}
11
3
  <h1 class="govuk-heading-l">{{title}}</h1>
12
4
  <p class="govuk-body">{{message}}</p>
@@ -7,7 +7,9 @@ const errorTitle = code => `${code}_ERROR`;
7
7
  const errorMsg = code => `There is a ${code}_ERROR`;
8
8
  // eslint-disable-next-line complexity
9
9
  const getContent = (err, translate) => {
10
- const content = {};
10
+ const content = {
11
+ serviceName: translate('journey.serviceName') || translate('journey.header'),
12
+ };
11
13
 
12
14
  if (err.code === 'SESSION_TIMEOUT') {
13
15
  err.status = 401;
@@ -85,6 +87,7 @@ module.exports = options => {
85
87
  const content = getContent(err, translate);
86
88
  const locals = {
87
89
  error: err,
90
+ serviceName: content.serviceName,
88
91
  content: debug === true ? err : content,
89
92
  showStack: debug === true,
90
93
  startLink: returnBaseUrl(req.path),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.7.0-service-paused-beta.11",
4
+ "version": "22.7.0-service-paused-beta.12",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",