Fix: i18n issue in add label filter header in chart version

In chart version view, wrong description appeared in add label button's header

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2018-11-23 16:07:04 +08:00
parent 1cc04183cb
commit 31f45ae908
7 changed files with 19 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<div> <div>
<label class="dropdown-header">{{'REPOSITORY.ADD_TO_IMAGE' | translate}}</label> <label class="dropdown-header">{{addLabelHeaders | translate}}</label>
<div class="form-group filter-div"> <div class="form-group filter-div">
<input #filterInput type="text" placeholder="Filter labels" [(ngModel)]="labelFilter"> <input #filterInput type="text" placeholder="Filter labels" [(ngModel)]="labelFilter">
</div> </div>

View File

@ -143,4 +143,12 @@ export class LabelMarkerComponent implements OnInit {
} }
}); });
} }
get addLabelHeaders(): string {
if (this.resourceType === ResourceType.CHART_VERSION) {
return 'HELM_CHART.ADD_LABEL_TO_CHART_VERSION';
} else {
return 'REPOSITORY.ADD_LABEL_TO_IMAGE';
}
}
} }

View File

@ -472,7 +472,7 @@
"NO_INFO": "No description for this repo. You can add it to this repository.", "NO_INFO": "No description for this repo. You can add it to this repository.",
"IMAGE": "Images", "IMAGE": "Images",
"LABELS": "Labels", "LABELS": "Labels",
"ADD_TO_IMAGE": "Add labels to this image", "ADD_LABEL_TO_IMAGE": "Add labels to this image",
"FILTER_BY_LABEL": "Filter images by label", "FILTER_BY_LABEL": "Filter images by label",
"ADD_LABELS": "Add labels", "ADD_LABELS": "Add labels",
"RETAG": "Retag", "RETAG": "Retag",
@ -537,6 +537,7 @@
"READY": "Ready", "READY": "Ready",
"NOT_READY": "Not Ready", "NOT_READY": "Not Ready",
"LABELS": "labels", "LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status" "STATUS": "Status"
}, },
"ALERT": { "ALERT": {

View File

@ -470,7 +470,7 @@
"NO_INFO": "Sin información de descripción para este repositorio", "NO_INFO": "Sin información de descripción para este repositorio",
"IMAGE": "Imágenes", "IMAGE": "Imágenes",
"LABELS": "Labels", "LABELS": "Labels",
"ADD_TO_IMAGE": "Add labels to this image", "ADD_LABEL_TO_IMAGE": "Add labels to this image",
"FILTER_BY_LABEL": "Filter images by label", "FILTER_BY_LABEL": "Filter images by label",
"ADD_LABELS": "Add labels", "ADD_LABELS": "Add labels",
"RETAG": "Retag", "RETAG": "Retag",
@ -535,6 +535,7 @@
"READY": "Ready", "READY": "Ready",
"NOT_READY": "Not Ready", "NOT_READY": "Not Ready",
"LABELS": "labels", "LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status" "STATUS": "Status"
}, },
"ALERT": { "ALERT": {

View File

@ -448,7 +448,7 @@
"NO_INFO": "No description for this repo. You can add it to this repository.", "NO_INFO": "No description for this repo. You can add it to this repository.",
"IMAGE": "Images", "IMAGE": "Images",
"LABELS": "Labels", "LABELS": "Labels",
"ADD_TO_IMAGE": "Add labels to this image", "ADD_LABEL_TO_IMAGE": "Add labels to this image",
"FILTER_BY_LABEL": "Filter images by label", "FILTER_BY_LABEL": "Filter images by label",
"ADD_LABELS": "Add labels", "ADD_LABELS": "Add labels",
"RETAG": "Retag", "RETAG": "Retag",
@ -512,6 +512,7 @@
"READY": "Ready", "READY": "Ready",
"NOT_READY": "Not Ready", "NOT_READY": "Not Ready",
"LABELS": "labels", "LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status" "STATUS": "Status"
}, },
"ALERT": { "ALERT": {

View File

@ -469,7 +469,7 @@
"NO_INFO": "Nenhuma descrição de informação para esse repositório", "NO_INFO": "Nenhuma descrição de informação para esse repositório",
"IMAGE": "Imagens", "IMAGE": "Imagens",
"LABELS": "Labels", "LABELS": "Labels",
"ADD_TO_IMAGE": "Adicionar labels a essa imagem", "ADD_LABEL_TO_IMAGE": "Adicionar labels a essa imagem",
"FILTER_BY_LABEL": "Filtrar imagens por label", "FILTER_BY_LABEL": "Filtrar imagens por label",
"ADD_LABELS": "Adicionar labels", "ADD_LABELS": "Adicionar labels",
"ACTION": "AÇÃO", "ACTION": "AÇÃO",
@ -530,6 +530,7 @@
"PROV_FILE": "Arquivo Prov", "PROV_FILE": "Arquivo Prov",
"READY": "Pronto", "READY": "Pronto",
"NOT_READY": "Não Pronto", "NOT_READY": "Não Pronto",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status" "STATUS": "Status"
}, },
"ALERT": { "ALERT": {

View File

@ -470,7 +470,7 @@
"NO_INFO": "此镜像仓库没有描述信息", "NO_INFO": "此镜像仓库没有描述信息",
"IMAGE": "镜像", "IMAGE": "镜像",
"LABELS": "标签", "LABELS": "标签",
"ADD_TO_IMAGE": "添加标签到此镜像", "ADD_LABEL_TO_IMAGE": "添加标签到此镜像",
"ADD_LABELS": "添加标签", "ADD_LABELS": "添加标签",
"RETAG": "复制镜像", "RETAG": "复制镜像",
"FILTER_BY_LABEL": "过滤标签", "FILTER_BY_LABEL": "过滤标签",
@ -535,6 +535,7 @@
"READY": "就绪", "READY": "就绪",
"NOT_READY": "未就绪", "NOT_READY": "未就绪",
"LABELS": "标签", "LABELS": "标签",
"ADD_LABEL_TO_CHART_VERSION": "添加标签到此 Chart Version",
"STATUS": "状态" "STATUS": "状态"
}, },
"ALERT": { "ALERT": {