From 5a4b009e985fa21d6560aef33f6b19e9299d2df8 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Thu, 19 Sep 2019 11:51:01 +0200 Subject: [PATCH] FEAT #11271 TIME 0:20 add data priorites idnexing form --- .../indexing-form/indexing-form.component.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts index 276966631cd..c6776cada36 100644 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts @@ -347,7 +347,19 @@ export class IndexingFormComponent implements OnInit { return of(false); }) ).subscribe(); - } + } else + if (elem.identifier === 'priority') { + this.http.get("../../rest/priorities").pipe( + tap((data: any) => { + elem.values = data.priorities; + }), + finalize(() => this.loading = false), + catchError((err: any) => { + this.notify.handleErrors(err); + return of(false); + }) + ).subscribe(); + } else if (elem.identifier === 'doctype') { this.http.get("../../rest/doctypes").pipe( tap((data: any) => { -- GitLab