@ministryofjustice/hmpps-digital-prison-reporting-frontend 6.3.2 → 6.4.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.
- package/_networkMocks/report/mockVariants/filter-input-examples/autoMultiMinMax.d.ts +3 -0
- package/all.bundle.js +6 -3
- package/all.bundle.js.map +1 -1
- package/all.js +6 -3
- package/all.js.map +1 -1
- package/cjs/dpr/components/_inputs/multi-select/utils.js +6 -1
- package/cjs/dpr/components/_inputs/multi-select/utils.js.map +1 -1
- package/cjs/dpr/data/reportingClient.js.map +1 -1
- package/cjs/dpr/validation/filterValidators.js +12 -1
- package/cjs/dpr/validation/filterValidators.js.map +1 -1
- package/cypress-tests/mockApis/reporting.d.ts +1 -0
- package/dpr/components/_inputs/multi-select/utils.js +6 -1
- package/dpr/components/_inputs/multi-select/utils.js.map +1 -1
- package/dpr/data/reportingClient.js.map +1 -1
- package/dpr/types/api.d.d.ts +8 -75
- package/dpr/types/api.d.ts +8 -75
- package/dpr/validation/filterValidators.js +12 -1
- package/dpr/validation/filterValidators.js.map +1 -1
- package/package.json +1 -1
package/all.bundle.js
CHANGED
|
@@ -2135,12 +2135,15 @@ class DprMyReports extends PollingClientClass {
|
|
|
2135
2135
|
const element = this.getElement();
|
|
2136
2136
|
this.maxRows = element.dataset['maxRows'];
|
|
2137
2137
|
this.listType = element.dataset['listType'] ?? `my-reports-${ListType.REQUESTED}`;
|
|
2138
|
-
|
|
2138
|
+
// Only set csrf and remove action on requested and viewed list types
|
|
2139
|
+
if (this.listType === `my-reports-${ListType.REQUESTED}` || `my-reports-${ListType.VIEWED}`) {
|
|
2140
|
+
this.csrfToken = DprHtmlClient.getCsrfToken(element);
|
|
2141
|
+
this.initRemoveAction();
|
|
2142
|
+
}
|
|
2139
2143
|
// Only poll on requested list
|
|
2140
|
-
if (
|
|
2144
|
+
if (this.listType !== `my-reports-${ListType.REQUESTED}`) {
|
|
2141
2145
|
return;
|
|
2142
2146
|
}
|
|
2143
|
-
this.csrfToken = DprHtmlClient.getCsrfToken(element);
|
|
2144
2147
|
this.rows = element.querySelectorAll('[data-row-id]');
|
|
2145
2148
|
if (this.rows.length && !this.allTerminal()) {
|
|
2146
2149
|
this.startPolling(() => this.pollAllReports(), () => this.allTerminal());
|