Skip to content

Commit

Permalink
Merge pull request #212 from GOKULRAJ136/dev-pmp
Browse files Browse the repository at this point in the history
MOSIP-29247 : PMP UI: All active partners should be displayed in "Partner Name" dropdown for partner policy mapping
  • Loading branch information
aranaravi authored Feb 5, 2024
2 parents 9fd333e + 25cd0dc commit 6746449
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@
required
disabled="{{setreadonly}}"
>
<input placeholder="Search..." matInput type="text" (keyup)="onKey($event.target.value)" class="search-input">
<mat-option
*ngFor="let data of dropDownValues[field.name]"
*ngFor="let data of searchResult"
(onSelectionChange)="
captureDropDownValue($event, field.name, 'primary')
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ export class MaterDataCommonBodyComponent implements OnInit {
this.dataStorageService
.getFiltersForAllDropDown('partnermanager/partners', request)
.subscribe(response => {
this.dropDownValues[key] = response.response.filters;
if(response.response.filters)
this.searchResult = response.response.filters.sort((a, b) => (a.name && b.name) ? a.id.localeCompare(b.name) : 0);
this.dropDownValues.partnerTypeCode.primary = response.response.filters.sort((a, b) => (a.name && b.name) ? a.name.localeCompare(b.name) : 0);
});
}

Expand Down
2 changes: 1 addition & 1 deletion pmp-ui/src/assets/entity-spec/policy-mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"showAsLink": "",
"linkType": "",
"LinkURL": "",
"inputType": "dropdown",
"inputType": "dropdownpartner",
"ismandatory": "true",
"showInListView": "false",
"showInSingleView": "true"
Expand Down

0 comments on commit 6746449

Please sign in to comment.