Skip to content
Snippets Groups Projects
Commit 494ec994 authored by Lars Wächter's avatar Lars Wächter
Browse files

Check for supported languages

parent b26e9684
Branches
Tags
No related merge requests found
...@@ -26,7 +26,7 @@ export class SpacyDialogComponent implements OnInit, AfterContentInit { ...@@ -26,7 +26,7 @@ export class SpacyDialogComponent implements OnInit, AfterContentInit {
keywords: Keyword[] = []; keywords: Keyword[] = [];
keywordsOriginal: Keyword[] = []; keywordsOriginal: Keyword[] = [];
isLoading = false; isLoading = false;
langSupported = true; langSupported: boolean;
manualKeywords = ''; manualKeywords = '';
constructor( constructor(
...@@ -40,10 +40,13 @@ export class SpacyDialogComponent implements OnInit, AfterContentInit { ...@@ -40,10 +40,13 @@ export class SpacyDialogComponent implements OnInit, AfterContentInit {
this.comment = this.data.comment; this.comment = this.data.comment;
this.commentLang = this.data.commentLang; this.commentLang = this.data.commentLang;
this.commentBodyChecked = this.data.commentBodyChecked; this.commentBodyChecked = this.data.commentBodyChecked;
this.langSupported = this.commentLang !== 'auto';
} }
ngAfterContentInit(): void { ngAfterContentInit(): void {
this.evalInput(this.commentLang); if(this.langSupported) {
this.evalInput(this.commentLang);
}
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment