From 01cfe33dd861b583ff3a3e956f15983480b92e8b Mon Sep 17 00:00:00 2001 From: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:42:44 +0530 Subject: [PATCH] added id for policy group values Signed-off-by: GOKULRAJ136 <110164849+GOKULRAJ136@users.noreply.github.com> --- .../mater-data-common-body.component.html | 7 +++++-- .../mater-data-common-body.component.ts | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.html b/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.html index e66c51bbd..ba43b0230 100644 --- a/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.html +++ b/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.html @@ -61,6 +61,7 @@ captureDropDownValue($event, field.name, 'primary') " [value]="data.fieldCode" + [id]="data.fieldValue" > {{ data.fieldValue }} @@ -74,13 +75,13 @@ required disabled="{{setreadonly}}" > - {{ data.fieldValue }} @@ -136,6 +137,7 @@ captureDropDownValue($event, field.name, 'primary') " [value]="data.fieldCode" + [id]="data.fieldValue" > {{ data.fieldValue }} @@ -209,6 +211,7 @@ captureDropDownValue($event, 'sbiId', '') " [value]="data.fieldCode" + [id]="data.fieldValue" > {{ data.fieldValue }} diff --git a/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.ts b/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.ts index 710e58218..9c76d33f6 100644 --- a/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.ts +++ b/pmp-ui/src/app/features/resources/shared/mater-data-common-body/mater-data-common-body.component.ts @@ -413,8 +413,7 @@ export class MaterDataCommonBodyComponent implements OnInit { this.dataStorageService .getFiltersForAllDropDown('partnermanager/partners', request) .subscribe(response => { - if(response.response.filters) - this.dropDownValues.partnerTypeCode.primary = response.response.filters.sort((a, b) => (a.name && b.name) ? a.name.localeCompare(b.name) : 0); + this.dropDownValues[key] = response.response.filters; }); }