@hmcts/ccd-case-ui-toolkit 7.3.53-exui-2645-rc1 → 7.3.53-exui-4291
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.
|
@@ -8918,10 +8918,10 @@ class CaseworkerService {
|
|
|
8918
8918
|
this.appConfig = appConfig;
|
|
8919
8919
|
this.errorService = errorService;
|
|
8920
8920
|
}
|
|
8921
|
-
|
|
8922
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/
|
|
8921
|
+
getUserByIdamId(idamId) {
|
|
8922
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUserByIdamId`;
|
|
8923
8923
|
return this.http
|
|
8924
|
-
.post(url,
|
|
8924
|
+
.post(url, idamId)
|
|
8925
8925
|
.pipe(catchError(error => {
|
|
8926
8926
|
this.errorService.setError(error);
|
|
8927
8927
|
return throwError(error);
|
|
@@ -12461,12 +12461,9 @@ class CaseEventCompletionTaskReassignedComponent {
|
|
|
12461
12461
|
this.jurisdiction = task.jurisdiction;
|
|
12462
12462
|
this.caseType = task.case_type_id;
|
|
12463
12463
|
// Current user is a caseworker?
|
|
12464
|
-
this.caseworkerSubscription = this.caseworkerService.
|
|
12465
|
-
if (
|
|
12466
|
-
|
|
12467
|
-
if (caseworker) {
|
|
12468
|
-
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
12469
|
-
}
|
|
12464
|
+
this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(task.assignee).subscribe(caseworker => {
|
|
12465
|
+
if (caseworker) {
|
|
12466
|
+
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
12470
12467
|
}
|
|
12471
12468
|
if (!this.assignedUserName) {
|
|
12472
12469
|
// Current user is a judicial user?
|
|
@@ -37575,12 +37572,9 @@ class TaskAssignedComponent {
|
|
|
37575
37572
|
// Current user is a caseworker?
|
|
37576
37573
|
this.jurisdiction = this.task.jurisdiction;
|
|
37577
37574
|
this.caseType = this.task.case_type_id;
|
|
37578
|
-
this.caseworkerSubscription = this.caseworkerService.
|
|
37579
|
-
if (
|
|
37580
|
-
|
|
37581
|
-
if (caseworker) {
|
|
37582
|
-
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
37583
|
-
}
|
|
37575
|
+
this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(this.task.assignee).subscribe(caseworker => {
|
|
37576
|
+
if (caseworker) {
|
|
37577
|
+
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
37584
37578
|
}
|
|
37585
37579
|
if (!this.assignedUserName) {
|
|
37586
37580
|
// Current user is a judicial user?
|