mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
remove wrong use of get in translation service
This commit is contained in:
@@ -93,9 +93,7 @@ export class TagActionsComponent implements OnChanges, OnInit, OnDestroy {
|
||||
|
||||
addTag() {
|
||||
if (this.searchTag(this.newTagName)) {
|
||||
this.translateService.get('TAG.MESSAGES.EXIST').subscribe((error) => {
|
||||
this.errorMsg = error;
|
||||
});
|
||||
this.errorMsg = this.translateService.instant('TAG.MESSAGES.EXIST');
|
||||
this.error.emit(this.errorMsg);
|
||||
} else {
|
||||
this.tagService.addTag(this.nodeId, this.newTagName).subscribe(() => {
|
||||
|
||||
Reference in New Issue
Block a user