@ministryofjustice/hmpps-digital-prison-reporting-frontend 7.4.0 → 7.5.0

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.
@@ -6,7 +6,9 @@
6
6
  <p>Try again later.</p>
7
7
  <h2 class="govuk-heading-m">Get help</h2>
8
8
  <p>Contact the helpdesk on 0800 917 5148 or #6598 from inside an establishment.</p>
9
+ {% if not isProbationService %}
9
10
  <p>
10
11
  <a class="govuk-link--no-visited-state" href="{{ digitalPrisonServicesUrl }}">Go to digital services home page</a>
11
12
  </p>
13
+ {% endif %}
12
14
  {% endblock %}
@@ -6,7 +6,9 @@
6
6
  <p>Try again later.</p>
7
7
  <h2 class="govuk-heading-m">Get help</h2>
8
8
  <p>Contact the helpdesk on 0800 917 5148 or #6598 from inside an establishment.</p>
9
+ {% if not isProbationService %}
9
10
  <p>
10
11
  <a class="govuk-link--no-visited-state" href="{{ digitalPrisonServicesUrl }}">Go to digital services home page</a>
11
12
  </p>
13
+ {% endif %}
12
14
  {% endblock %}
@@ -26,6 +26,7 @@ interface ExtraLocals {
26
26
  lastUpdated?: number | undefined
27
27
  flags: Record<string, boolean>
28
28
  }
29
+ isProbationService?: boolean
29
30
 
30
31
  bookmarkingEnabled: boolean
31
32
  downloadingEnabled: boolean
@@ -26,6 +26,7 @@ export interface ExtraLocals {
26
26
  lastUpdated?: number | undefined
27
27
  flags: Record<string, boolean>
28
28
  }
29
+ isProbationService?: boolean
29
30
 
30
31
  bookmarkingEnabled: boolean
31
32
  downloadingEnabled: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -3,6 +3,7 @@ export declare const setRedisState: (userStore: ReportStoreConfig, userId?: stri
3
3
  export declare const getRedisState: (userId?: string) => Cypress.Chainable<Cypress.Response<ReportStoreConfig>>;
4
4
  export declare const resetFeatureFlags: () => void;
5
5
  export declare const toggleBookmarking: () => void;
6
+ export declare const setIsProbationService: (isProbationService?: boolean) => void;
6
7
  export declare const resetDefinitionsCheck: () => void;
7
8
  export declare const resetStaleReportsCheck: () => void;
8
9
  export declare const updateRedisState: (userStoreKey: keyof ReportStoreConfig, userStoreValue: ReportStoreConfig[typeof userStoreKey], userId?: string) => void;