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 276966631cdf17c081fd1eec58ecf2097b687867..c6776cada362e2e67bbd9afca817e39dd4ea35b2 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) => {