diff --git a/src/portal/lib/src/repository-gridview/repository-gridview.component.html b/src/portal/lib/src/repository-gridview/repository-gridview.component.html index fe1e431fc..c69658d12 100644 --- a/src/portal/lib/src/repository-gridview/repository-gridview.component.html +++ b/src/portal/lib/src/repository-gridview/repository-gridview.component.html @@ -73,7 +73,7 @@
- {{getRepoDescrition(item)}} + {{item.description || ('REPOSITORY.NO_INFO' | translate)}}
diff --git a/src/portal/lib/src/repository-gridview/repository-gridview.component.ts b/src/portal/lib/src/repository-gridview/repository-gridview.component.ts index 16c30e239..c0f7e2d44 100644 --- a/src/portal/lib/src/repository-gridview/repository-gridview.component.ts +++ b/src/portal/lib/src/repository-gridview/repository-gridview.component.ts @@ -456,13 +456,6 @@ export class RepositoryGridviewComponent implements OnChanges, OnInit { return "/container-image-icons?container-image=" + repo.name; } - getRepoDescrition(repo: RepositoryItem): string { - if (repo && repo.description) { - return repo.description; - } - return "No description for this repo. You can add it to this repository."; - } - showCard(cardView: boolean) { if (this.isCardView === cardView) { return; diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 683d76c48..9f0b19400 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -465,7 +465,7 @@ "NOTARY_IS_UNDETERMINED": "Cannot determine the signature of this tag.", "PLACEHOLDER": "We couldn't find any repositories!", "INFO": "Info", - "NO_INFO": "No description info for this repository", + "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", diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index a3a116f14..6e6e4ea32 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -442,6 +442,7 @@ "COPY": "Copier", "NOTARY_IS_UNDETERMINED": "Ne peut pas déterminer la signature de ce tag.", "PLACEHOLDER": "Nous ne trouvons aucun dépôt !", + "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",