feedback updates
This commit is contained in:
parent
32ba75b4d2
commit
2402382297
@ -21,6 +21,12 @@ export class ParamService {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getValidParameters(P_PARAMTYPE: string): Observable<ParamProperties[]> {
|
||||||
|
return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetParamValues?P_SPID=${this.userService.getUserSpid()}&P_PARAMTYPE=${P_PARAMTYPE}`).pipe(
|
||||||
|
map(response => this.mapToParamValue(response))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
private mapToParamValue(data: any[]): ParamProperties[] {
|
private mapToParamValue(data: any[]): ParamProperties[] {
|
||||||
return data.map((paramValue: any) => ({
|
return data.map((paramValue: any) => ({
|
||||||
paramId: paramValue.PARAMID,
|
paramId: paramValue.PARAMID,
|
||||||
|
|||||||
@ -71,8 +71,8 @@ export class ManageCountryComponent {
|
|||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
|
|
||||||
forkJoin({
|
forkJoin({
|
||||||
countries: this.paramService.getParameters('002'),
|
countries: this.paramService.getValidParameters('002'),
|
||||||
countriesWithMessages: this.paramService.getParameters('014')
|
countriesWithMessages: this.paramService.getValidParameters('014')
|
||||||
}).pipe(finalize(() => {
|
}).pipe(finalize(() => {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
})).subscribe({
|
})).subscribe({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user