@hmcts/ccd-case-ui-toolkit 6.10.5-angular-upgrade-r3.5 → 6.10.6-angular-upgrade-r4
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +2 -22
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +3 -23
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +2 -22
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +0 -2
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8522,7 +8522,7 @@
|
|
|
8522
8522
|
.set('Content-Type', 'application/json');
|
|
8523
8523
|
return this.http
|
|
8524
8524
|
.post(url, eventData, { headers: headers, observe: 'body' })
|
|
8525
|
-
.pipe(operators.
|
|
8525
|
+
.pipe(operators.catchError(function (error) {
|
|
8526
8526
|
_this.errorService.setError(error);
|
|
8527
8527
|
return rxjs.throwError(error);
|
|
8528
8528
|
}));
|
|
@@ -8557,7 +8557,7 @@
|
|
|
8557
8557
|
.set('Content-Type', 'application/json');
|
|
8558
8558
|
return this.http
|
|
8559
8559
|
.post(url, eventData, { headers: headers, observe: 'body' })
|
|
8560
|
-
.pipe(operators.
|
|
8560
|
+
.pipe(operators.catchError(function (error) {
|
|
8561
8561
|
_this.errorService.setError(error);
|
|
8562
8562
|
return rxjs.throwError(error);
|
|
8563
8563
|
}));
|
|
@@ -8597,10 +8597,6 @@
|
|
|
8597
8597
|
}
|
|
8598
8598
|
return url;
|
|
8599
8599
|
};
|
|
8600
|
-
CasesService.prototype.processResponseBody = function (body, eventData) {
|
|
8601
|
-
this.processTasksOnSuccess(body, eventData.event);
|
|
8602
|
-
return body;
|
|
8603
|
-
};
|
|
8604
8600
|
CasesService.prototype.initialiseEventTrigger = function (eventTrigger) {
|
|
8605
8601
|
var _this = this;
|
|
8606
8602
|
if (!eventTrigger.wizard_pages) {
|
|
@@ -8611,22 +8607,6 @@
|
|
|
8611
8607
|
wizardPage.case_fields = _this.orderService.sort(_this.wizardPageFieldToCaseFieldMapper.mapAll(wizardPage.wizard_page_fields, eventTrigger.case_fields));
|
|
8612
8608
|
});
|
|
8613
8609
|
};
|
|
8614
|
-
CasesService.prototype.processTasksOnSuccess = function (caseData, eventData) {
|
|
8615
|
-
// The following code is work allocation 1 related
|
|
8616
|
-
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation') {
|
|
8617
|
-
// This is used a feature toggle to
|
|
8618
|
-
// control the work allocation
|
|
8619
|
-
if (!this.isPuiCaseManager()) {
|
|
8620
|
-
this.workAllocationService.completeAppropriateTask(caseData.id, eventData.id, caseData.jurisdiction, caseData.case_type)
|
|
8621
|
-
.subscribe(function () {
|
|
8622
|
-
// Success. Do nothing.
|
|
8623
|
-
}, function (error) {
|
|
8624
|
-
// Show an appropriate warning about something that went wrong.
|
|
8625
|
-
console.warn('Could not process tasks for this case event', error);
|
|
8626
|
-
});
|
|
8627
|
-
}
|
|
8628
|
-
}
|
|
8629
|
-
};
|
|
8630
8610
|
/*
|
|
8631
8611
|
Checks if the user has role of pui-case-manager and returns true or false
|
|
8632
8612
|
*/
|