@hmcts/rpx-xui-common-lib 1.6.7-hide-assigned-user → 1.6.7-hide-assigned-user-2
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-rpx-xui-common-lib.umd.js +11 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/services/find-person/find-person.service.js +11 -2
- package/esm5/lib/services/find-person/find-person.service.js +12 -2
- package/fesm2015/hmcts-rpx-xui-common-lib.js +10 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +11 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -4643,6 +4643,7 @@
|
|
|
4643
4643
|
* @return {?}
|
|
4644
4644
|
*/
|
|
4645
4645
|
function (searchOptions) {
|
|
4646
|
+
var _this = this;
|
|
4646
4647
|
/** @type {?} */
|
|
4647
4648
|
var userInfoStr = this.sessionStorageService.getItem('userDetails');
|
|
4648
4649
|
if (userInfoStr && !searchOptions.userIncluded) {
|
|
@@ -4651,7 +4652,16 @@
|
|
|
4651
4652
|
this.userId = userInfo.id ? userInfo.id : userInfo.uid;
|
|
4652
4653
|
}
|
|
4653
4654
|
this.assignedUser = searchOptions.assignedUser ? searchOptions.assignedUser : null;
|
|
4654
|
-
return this.http.post('/workallocation2/findPerson', { searchOptions: searchOptions
|
|
4655
|
+
return this.http.post('/workallocation2/findPerson', { searchOptions: searchOptions })
|
|
4656
|
+
.pipe(operators.map(( /**
|
|
4657
|
+
* @param {?} judiciary
|
|
4658
|
+
* @return {?}
|
|
4659
|
+
*/function (judiciary) {
|
|
4660
|
+
return judiciary.filter(( /**
|
|
4661
|
+
* @param {?} judge
|
|
4662
|
+
* @return {?}
|
|
4663
|
+
*/function (judge) { return !([_this.assignedUser, _this.userId].includes(judge.id)); }));
|
|
4664
|
+
})));
|
|
4655
4665
|
};
|
|
4656
4666
|
/**
|
|
4657
4667
|
* @param {?} searchOptions
|