From 9e78f6fd08a90df7eb28df7598b9fbe8861a5c20 Mon Sep 17 00:00:00 2001
From: winnie tongle <winnie.carole.tongle.djoukeng@mni.thm.de>
Date: Sun, 16 May 2021 20:10:08 +0200
Subject: [PATCH] add the variable spacyservice to the constructor and add the
 method keywordtospacy to the button(send to spacy)

---
 .../topic-cloud-administration.component.html            | 3 ++-
 .../topic-cloud-administration.component.ts              | 9 +++------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html
index 2c6bd47d4..69b84981b 100644
--- a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html
+++ b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html
@@ -113,7 +113,8 @@
           (click)="openConfirmDialog(keyword)">
           <mat-icon class="red">delete</mat-icon>
         </button>
-        <button class="margin-right" mat-icon-button style="align-self:flex-end;">send to spacy
+        <button class="margin-right" mat-icon-button style="align-self:flex-end;"
+                (click)="keywordtoSpacy(keyword.keyword,model.value.toString())">send to spacy
         </button>
       </div>
 
diff --git a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts
index 6892e4988..bc5f57203 100644
--- a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts
+++ b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts
@@ -93,6 +93,7 @@ export class TopicCloudAdministrationComponent implements OnInit {
               private notificationService: NotificationService,
               private authenticationService: AuthenticationService,
               private translateService: TranslateService,
+              private spacyService: SpacyService,
               private langService: LanguageService) {
 
                 this.langService.langEmitter.subscribe(lang => {
@@ -231,12 +232,8 @@ export class TopicCloudAdministrationComponent implements OnInit {
     }
     return undefined;
   }
-  commentLang = [
-    { lang: 'tagkeyword' },
-    { lang: 'spacykeyword' },
-  ];
-  selectedLang = localStorage.getItem('currentLang');
-  comment: Comment;
+  keywordtoSpacy(text: string,model: string) {
+  }
 }
 
 interface Keyword {
-- 
GitLab