From c31d3bb0364c31100a04ea4e9e3520c001e3dc1f Mon Sep 17 00:00:00 2001 From: Jelte van Boheemen Date: Wed, 8 Nov 2023 15:41:01 +0100 Subject: [PATCH] Create tag interface --- frontend/src/app/services/api.service.ts | 2 +- .../tag/tag-select/tag-select.component.html | 23 ++++++++- .../tag/tag-select/tag-select.component.ts | 49 ++++++++++++++++--- 3 files changed, 63 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts index b4607cd90..4acf5b75a 100644 --- a/frontend/src/app/services/api.service.ts +++ b/frontend/src/app/services/api.service.ts @@ -253,7 +253,7 @@ export class ApiService { public createTag(name: string, description?: string): Observable { const url = this.apiRoute(this.tagApiUrl, 'tags/'); - return this.http.put(url, { name, description }); + return this.http.post(url, { name, description }); } public documentTags(document: FoundDocument): Observable { diff --git a/frontend/src/app/tag/tag-select/tag-select.component.html b/frontend/src/app/tag/tag-select/tag-select.component.html index ed5fb866d..9284fa404 100644 --- a/frontend/src/app/tag/tag-select/tag-select.component.html +++ b/frontend/src/app/tag/tag-select/tag-select.component.html @@ -1,17 +1,36 @@
-
+ +
+ + +
- +
+
+ +
+ +
+
+
+
+