Revision 61428
Added by Argiro Kokogiannaki almost 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/monitor/services/stakeholder.service.ts | ||
---|---|---|
108 | 108 |
} |
109 | 109 |
})); |
110 | 110 |
} |
111 |
|
|
111 |
saveBulkElements(url: string, indicators, path: string[] = []): Observable<any> { |
|
112 |
path = HelperFunctions.encodeArray(path); |
|
113 |
return this.http.post<any>(url + ((path.length > 0) ? '/' : '') + path.join('/') + |
|
114 |
'/save-bulk', indicators, CustomOptions.registryOptions()).pipe(map(element => { |
|
115 |
if(path.length === 0) { |
|
116 |
return this.formalize(this.checkIsUpload(element)); |
|
117 |
} else { |
|
118 |
return this.formalize(element); |
|
119 |
} |
|
120 |
})); |
|
121 |
} |
|
112 | 122 |
saveSection(url: string, element: any, path: string[] = [], index: number = -1): Observable<Section> { |
113 | 123 |
path = HelperFunctions.encodeArray(path); |
114 | 124 |
return this.http.post<Section>(url + ((path.length > 0) ? '/' : '') + path.join('/') + |
Also available in: Unified diff
[ Library |Trunk]
Satkeholder service: add new method for indicators bulk save