diff --git a/monitor/services/stakeholder.service.ts b/monitor/services/stakeholder.service.ts index 22291b47..6dfcf654 100644 --- a/monitor/services/stakeholder.service.ts +++ b/monitor/services/stakeholder.service.ts @@ -108,7 +108,17 @@ export class StakeholderService { } })); } - + saveBulkElements(url: string, indicators, path: string[] = []): Observable { + path = HelperFunctions.encodeArray(path); + return this.http.post(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
{ path = HelperFunctions.encodeArray(path); return this.http.post
(url + ((path.length > 0) ? '/' : '') + path.join('/') +