@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.19.0 → 3.19.2

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.
@@ -788,12 +788,13 @@ class DprAsyncPolling extends DprPollingStatusClass {
788
788
 
789
789
  initPollingStatus () {
790
790
  const status = this.statusSection.getAttribute('data-current-status');
791
+ const csrfToken = this.statusSection.getAttribute('data-csrf-token');
791
792
 
792
793
  if (this.POLLING_STATUSES.includes(status)) {
793
794
  setInterval(async () => {
794
795
  if (this.requestData) {
795
796
  const meta = JSON.parse(this.requestData);
796
- await this.getRequestStatus(meta, this.csrfToken);
797
+ await this.getRequestStatus(meta, csrfToken);
797
798
  window.location.reload();
798
799
  }
799
800
  }, this.POLLING_FREQUENCY);
@@ -1,4 +1,4 @@
1
- {% from "components/table-card-group/view.njk" import dprTableCardGroup %}
1
+ {% from "../table-card-group/view.njk" import dprTableCardGroup %}
2
2
 
3
3
  {% macro dprAsyncRequestList(head, cardData, tableData, total, meta, csrfToken) %}
4
4
  <div id="dpr-async-request-component" data-dpr-module="async-request-list" data-request-data='{{ meta | dump | safe }}' data-csrf-token="{{ csrfToken }}">
@@ -42,7 +42,7 @@
42
42
  } if not mandatory
43
43
  }) }}
44
44
 
45
- {% if toggleMin %}
45
+ {% if toggleMin and min %}
46
46
  <a class="govuk-body-xs daterange-set-to-minmax"
47
47
  data-set-to-input='{{ id }}'
48
48
  data-set-min-max-value={{ min }}
@@ -52,7 +52,7 @@
52
52
  </a>
53
53
  {% endif %}
54
54
 
55
- {% if toggleMax %}
55
+ {% if toggleMax and max %}
56
56
  <a class="govuk-body-xs daterange-set-to-minmax"
57
57
  data-set-to-input='{{ id }}'
58
58
  data-set-min-max-value={{ max }}
@@ -1,4 +1,4 @@
1
- {% from "components/table-card-group/view.njk" import dprTableCardGroup %}
1
+ {% from "../table-card-group/view.njk" import dprTableCardGroup %}
2
2
 
3
3
  {% macro dprRecentlyViewedList(head, cardData, tableData, total, meta, csrfToken) %}
4
4
  <div id="dpr-recently-viewed-component" data-dpr-module="recently-viewed-list" data-request-data='{{ meta | dump | safe }}' data-csrf-token="{{ csrfToken }}">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
3
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
4
- "version": "3.19.0",
4
+ "version": "3.19.2",
5
5
  "main": "dpr/assets/js/all.mjs",
6
6
  "sass": "dpr/all.scss",
7
7
  "engines": {
package/package.zip CHANGED
Binary file