@hmcts/ccd-case-ui-toolkit 6.10.4-angular-upgrade-r3.5 → 6.10.5-fix-multiple-complete-task3
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 -28
- 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/esm2015/lib/shared/components/palette/base-field/field-read.component.js +1 -5
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +2 -28
- 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/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-write.component.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
|
*/
|
|
@@ -17958,9 +17938,6 @@
|
|
|
17958
17938
|
component.instance['caseReference'] = _this.caseReference;
|
|
17959
17939
|
component.instance['context'] = _this.context;
|
|
17960
17940
|
component.instance['markdownUseHrefAsRouterLink'] = _this.markdownUseHrefAsRouterLink;
|
|
17961
|
-
// Add a reference to the parent CaseEditPageComponent to this component (needed for access to the parent
|
|
17962
|
-
// CaseEditPageComponent's getCaseTitle method)
|
|
17963
|
-
component.instance['caseEditPageComponent'] = component.injector.get(CaseEditPageComponent);
|
|
17964
17941
|
_this.fieldContainer.insert(component.hostView);
|
|
17965
17942
|
});
|
|
17966
17943
|
};
|
|
@@ -18048,9 +18025,6 @@
|
|
|
18048
18025
|
}
|
|
18049
18026
|
component.instance['isExpanded'] = this.isExpanded;
|
|
18050
18027
|
component.instance['isInSearchBlock'] = this.isInSearchBlock;
|
|
18051
|
-
// Add a reference to the parent CaseEditPageComponent to this component (needed for access to the parent
|
|
18052
|
-
// CaseEditPageComponent's validation error messages)
|
|
18053
|
-
component.instance['caseEditPageComponent'] = component.injector.get(CaseEditPageComponent);
|
|
18054
18028
|
this.fieldContainer.insert(component.hostView);
|
|
18055
18029
|
// EUI-3267.
|
|
18056
18030
|
// Set up the flag for whether this can have a grey bar.
|