[ Library |Trunk]
Satkeholder service: add new method for indicators bulk save git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61428 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
08bf703186
commit
6db2ef23e5
|
@ -108,7 +108,17 @@ export class StakeholderService {
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
saveBulkElements(url: string, indicators, path: string[] = []): Observable<any> {
|
||||||
|
path = HelperFunctions.encodeArray(path);
|
||||||
|
return this.http.post<any>(url + ((path.length > 0) ? '/' : '') + path.join('/') +
|
||||||
|
'/save-bulk', indicators, CustomOptions.registryOptions()).pipe(map(element => {
|
||||||
|
if(path.length === 0) {
|
||||||
|
return this.formalize(this.checkIsUpload(element));
|
||||||
|
} else {
|
||||||
|
return this.formalize(element);
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
saveSection(url: string, element: any, path: string[] = [], index: number = -1): Observable<Section> {
|
saveSection(url: string, element: any, path: string[] = [], index: number = -1): Observable<Section> {
|
||||||
path = HelperFunctions.encodeArray(path);
|
path = HelperFunctions.encodeArray(path);
|
||||||
return this.http.post<Section>(url + ((path.length > 0) ? '/' : '') + path.join('/') +
|
return this.http.post<Section>(url + ((path.length > 0) ? '/' : '') + path.join('/') +
|
||||||
|
|
Loading…
Reference in New Issue