From 1ae178a436ff123b54d5221fa74cd642060eb25f Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:26:51 +0200 Subject: [PATCH] [ACS-4523] Fix translation and label (#8505) --- .../categories-management.component.html | 6 +++--- .../categories-management.component.ts | 7 +++++++ .../tags-creator/tags-creator.component.html | 20 +++++++++---------- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/lib/content-services/src/lib/category/categories-management/categories-management.component.html b/lib/content-services/src/lib/category/categories-management/categories-management.component.html index cef42a3877..516f0acca9 100644 --- a/lib/content-services/src/lib/category/categories-management/categories-management.component.html +++ b/lib/content-services/src/lib/category/categories-management/categories-management.component.html @@ -1,7 +1,7 @@

- {{ isCRUDMode ? 'CATEGORIES_MANAGEMENT.NO_CATEGORIES_CREATED' : 'CATEGORIES_MANAGEMENT.NO_CATEGORIES_ASSIGNED' | translate }} + {{ noCategoriesMsg | translate }}

@@ -15,7 +15,7 @@ mat-icon-button [class.adf-btn-padded]="!isCRUDMode" (click)="removeCategory(category)" - [attr.title]="isCRUDMode ? 'CATEGORIES_MANAGEMENT.DELETE_CATEGORY' : 'CATEGORIES_MANAGEMENT.UNASSIGN_CATEGORY' | translate" + [attr.title]="removeCategoryTitle | translate" [disabled]="disableRemoval"> remove @@ -60,7 +60,7 @@

- {{ isCRUDMode ? 'CATEGORIES_MANAGEMENT.EXISTING_CATEGORIES' : 'CATEGORIES_MANAGEMENT.SELECT_EXISTING_CATEGORY' | translate }} + {{ existingCategoriesMsg | translate }}

this.initialCategories.push(category)); diff --git a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html index fa2e68dbf6..9e7f83145c 100644 --- a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html +++ b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.html @@ -54,17 +54,15 @@
- - - {{ 'TAG.TAGS_CREATOR.CREATE_TAG' | translate : { tag: tagNameControl.value } }} - -

- {{ (isOnlyCreateMode() ? 'TAG.TAGS_CREATOR.EXISTING_TAGS' : 'TAG.TAGS_CREATOR.EXISTING_TAGS_SELECTION') | translate }} -

-
+ + {{ 'TAG.TAGS_CREATOR.CREATE_TAG' | translate : { tag: tagNameControl.value } }} + +

+ {{ (isOnlyCreateMode() ? 'TAG.TAGS_CREATOR.EXISTING_TAGS' : 'TAG.TAGS_CREATOR.EXISTING_TAGS_SELECTION') | translate }} +