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>
<label class="dropdown-header">{{'REPOSITORY.ADD_TO_IMAGE' | translate}}</label>
<label class="dropdown-header">{{addLabelHeaders | translate}}</label>
<div class="form-group filter-div">
<input #filterInput type="text" placeholder="Filter labels" [(ngModel)]="labelFilter">
</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.",
"IMAGE": "Images",
"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",
"ADD_LABELS": "Add labels",
"RETAG": "Retag",
@ -537,6 +537,7 @@
"READY": "Ready",
"NOT_READY": "Not Ready",
"LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status"
},
"ALERT": {

View File

@ -470,7 +470,7 @@
"NO_INFO": "Sin información de descripción para este repositorio",
"IMAGE": "Imágenes",
"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",
"ADD_LABELS": "Add labels",
"RETAG": "Retag",
@ -535,6 +535,7 @@
"READY": "Ready",
"NOT_READY": "Not Ready",
"LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status"
},
"ALERT": {

View File

@ -448,7 +448,7 @@
"NO_INFO": "No description for this repo. You can add it to this repository.",
"IMAGE": "Images",
"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",
"ADD_LABELS": "Add labels",
"RETAG": "Retag",
@ -512,6 +512,7 @@
"READY": "Ready",
"NOT_READY": "Not Ready",
"LABELS": "labels",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status"
},
"ALERT": {

View File

@ -469,7 +469,7 @@
"NO_INFO": "Nenhuma descrição de informação para esse repositório",
"IMAGE": "Imagens",
"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",
"ADD_LABELS": "Adicionar labels",
"ACTION": "AÇÃO",
@ -530,6 +530,7 @@
"PROV_FILE": "Arquivo Prov",
"READY": "Pronto",
"NOT_READY": "Não Pronto",
"ADD_LABEL_TO_CHART_VERSION": "Add labels to this chart version",
"STATUS": "Status"
},
"ALERT": {

View File

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