@hmcts/ccd-case-ui-toolkit 7.3.0-exui-3682 → 7.3.0-user-by-idam
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.
|
@@ -8663,10 +8663,10 @@ class CaseworkerService {
|
|
|
8663
8663
|
this.appConfig = appConfig;
|
|
8664
8664
|
this.errorService = errorService;
|
|
8665
8665
|
}
|
|
8666
|
-
|
|
8667
|
-
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/
|
|
8666
|
+
getUserByIdamId(idamId) {
|
|
8667
|
+
const url = `${this.appConfig.getWorkAllocationApiUrl()}/caseworker/getUserByIdamId`;
|
|
8668
8668
|
return this.http
|
|
8669
|
-
.post(url,
|
|
8669
|
+
.post(url, idamId)
|
|
8670
8670
|
.pipe(catchError(error => {
|
|
8671
8671
|
this.errorService.setError(error);
|
|
8672
8672
|
return throwError(error);
|
|
@@ -12067,12 +12067,9 @@ class CaseEventCompletionTaskReassignedComponent {
|
|
|
12067
12067
|
this.jurisdiction = task.jurisdiction;
|
|
12068
12068
|
this.caseType = task.case_type_id;
|
|
12069
12069
|
// Current user is a caseworker?
|
|
12070
|
-
this.caseworkerSubscription = this.caseworkerService.
|
|
12071
|
-
if (
|
|
12072
|
-
|
|
12073
|
-
if (caseworker) {
|
|
12074
|
-
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
12075
|
-
}
|
|
12070
|
+
this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(task.assignee).subscribe(caseworker => {
|
|
12071
|
+
if (caseworker) {
|
|
12072
|
+
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
12076
12073
|
}
|
|
12077
12074
|
if (!this.assignedUserName) {
|
|
12078
12075
|
// Current user is a judicial user?
|
|
@@ -36616,12 +36613,9 @@ class TaskAssignedComponent {
|
|
|
36616
36613
|
// Current user is a caseworker?
|
|
36617
36614
|
this.jurisdiction = this.task.jurisdiction;
|
|
36618
36615
|
this.caseType = this.task.case_type_id;
|
|
36619
|
-
this.caseworkerSubscription = this.caseworkerService.
|
|
36620
|
-
if (
|
|
36621
|
-
|
|
36622
|
-
if (caseworker) {
|
|
36623
|
-
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
36624
|
-
}
|
|
36616
|
+
this.caseworkerSubscription = this.caseworkerService.getUserByIdamId(this.task.assignee).subscribe(caseworker => {
|
|
36617
|
+
if (caseworker) {
|
|
36618
|
+
this.assignedUserName = `${caseworker.firstName} ${caseworker.lastName}`;
|
|
36625
36619
|
}
|
|
36626
36620
|
if (!this.assignedUserName) {
|
|
36627
36621
|
// Current user is a judicial user?
|