@@ -114,7 +112,7 @@ export const TAG_TEMPLATE = `
-
+
{{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} {{'REPOSITORY.OF' | translate}}
{{pagination.totalItems}} {{'REPOSITORY.ITEMS' | translate}}
diff --git a/src/ui_ng/lib/src/tag/tag.component.ts b/src/ui_ng/lib/src/tag/tag.component.ts
index d0e2dda27e..ee0137069a 100644
--- a/src/ui_ng/lib/src/tag/tag.component.ts
+++ b/src/ui_ng/lib/src/tag/tag.component.ts
@@ -196,7 +196,9 @@ export class TagComponent implements OnInit, AfterViewInit {
}
ngAfterViewInit() {
- this.getAllLabels();
+ if (!this.withAdmiral) {
+ this.getAllLabels();
+ }
}
public get filterLabelPieceWidth() {
diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json
index 52ae9f4cb5..7940d6aa6f 100644
--- a/src/ui_ng/package.json
+++ b/src/ui_ng/package.json
@@ -31,7 +31,7 @@
"clarity-icons": "^0.10.17",
"clarity-ui": "^0.10.27",
"core-js": "^2.4.1",
- "harbor-ui": "0.6.58",
+ "harbor-ui": "0.6.61",
"intl": "^1.2.5",
"mutationobserver-shim": "^0.3.2",
"ngx-cookie": "^1.0.0",
diff --git a/src/ui_ng/src/app/repository/repository-page.component.html b/src/ui_ng/src/app/repository/repository-page.component.html
index 3cce6acdde..06f72277d8 100644
--- a/src/ui_ng/src/app/repository/repository-page.component.html
+++ b/src/ui_ng/src/app/repository/repository-page.component.html
@@ -1,3 +1,5 @@
-
+
\ No newline at end of file
diff --git a/src/ui_ng/src/app/repository/repository-page.component.ts b/src/ui_ng/src/app/repository/repository-page.component.ts
index eed90d4c15..5e77fb9263 100644
--- a/src/ui_ng/src/app/repository/repository-page.component.ts
+++ b/src/ui_ng/src/app/repository/repository-page.component.ts
@@ -17,7 +17,7 @@ import { ActivatedRoute, Router } from '@angular/router';
import { Project } from '../project/project';
import { SessionService } from '../shared/session.service';
-import { TagClickEvent } from 'harbor-ui';
+import { TagClickEvent, RepositoryItem } from 'harbor-ui';
@Component({
selector: 'repository',
@@ -47,8 +47,8 @@ export class RepositoryPageComponent implements OnInit {
this.hasSignedIn = this.session.getCurrentUser() !== null;
}
- watchTagClickEvent(tagEvt: TagClickEvent): void {
- let linkUrl = ['harbor', 'projects', tagEvt.project_id, 'repositories', tagEvt.repository_name];
+ watchRepoClickEvent(repoEvt: RepositoryItem): void {
+ let linkUrl = ['harbor', 'projects', repoEvt.project_id, 'repositories', repoEvt.name];
this.router.navigate(linkUrl);
}
};
diff --git a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html
index 9c506dfb1b..01f4e59b4f 100644
--- a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html
+++ b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html
@@ -1,3 +1,6 @@
-
+
\ No newline at end of file
diff --git a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts
index 842a58de4e..96708a18e1 100644
--- a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts
+++ b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts
@@ -79,12 +79,13 @@ export class TagRepositoryComponent implements OnInit {
hasChanges(): boolean {
return this.repositoryComponent.hasChanges();
}
+
watchTagClickEvt(tagEvt: TagClickEvent): void {
let linkUrl = ['harbor', 'projects', tagEvt.project_id, 'repositories', tagEvt.repository_name, 'tags', tagEvt.tag_name];
this.router.navigate(linkUrl);
}
- goBack(tag: string): void {
- this.router.navigate(["harbor", "projects", this.projectId, "repositories"]);
+ watchGoBackEvt(projectId: string): void {
+ this.router.navigate(["harbor", "projects", projectId, "repositories"]);
}
}
\ No newline at end of file
diff --git a/src/ui_ng/src/i18n/lang/en-us-lang.json b/src/ui_ng/src/i18n/lang/en-us-lang.json
index f776b61e30..525ed7bd85 100644
--- a/src/ui_ng/src/i18n/lang/en-us-lang.json
+++ b/src/ui_ng/src/i18n/lang/en-us-lang.json
@@ -404,6 +404,7 @@
"REPOSITORIES": "Repositories",
"OF": "of",
"ITEMS": "items",
+ "NO_ITEMS": "NO ITEMS",
"POP_REPOS": "Popular Repositories",
"DELETED_REPO_SUCCESS": "Deleted repositories successfully.",
"DELETED_TAG_SUCCESS": "Deleted tags successfully.",
@@ -416,7 +417,10 @@
"LABELS": ":labels",
"ADD_TO_IMAGE": "Add labels to this image",
"FILTER_BY_LABEL": "Filter projects by label",
- "ADD_LABELS": "Add labels"
+ "ADD_LABELS": "Add labels",
+ "ACTION": "ACTION",
+ "DEPLOY": "DEPLOY",
+ "ADDITIONAL_INFO": "Add Additional Info"
},
"ALERT": {
"FORM_CHANGE_CONFIRMATION": "Some changes are not saved yet. Do you want to cancel?"
diff --git a/src/ui_ng/src/i18n/lang/es-es-lang.json b/src/ui_ng/src/i18n/lang/es-es-lang.json
index 70a19d087c..9f3f9d00cc 100644
--- a/src/ui_ng/src/i18n/lang/es-es-lang.json
+++ b/src/ui_ng/src/i18n/lang/es-es-lang.json
@@ -404,6 +404,7 @@
"REPOSITORIES": "Repositorios",
"OF": "of",
"ITEMS": "elementos",
+ "NO_ITEMS": "NO ITEMS",
"POP_REPOS": "Repositorios Populares",
"DELETED_REPO_SUCCESS": "Repositorio eliminado satisfactoriamente.",
"DELETED_TAG_SUCCESS": "Etiqueta eliminada satisfactoriamente.",
@@ -415,7 +416,11 @@
"IMAGE": "Imágenes",
"LABELS": "Labels",
"ADD_TO_IMAGE": "Add labels to this image",
- "ADD_LABELS": "Add labels"
+ "ADD_LABELS": "Add labels",
+ "FILTER_BY_LABEL": "Filter projects by label",
+ "ACTION": "ACTION",
+ "DEPLOY": "DEPLOY",
+ "ADDITIONAL_INFO": "Add Additional Info"
},
"ALERT": {
"FORM_CHANGE_CONFIRMATION": "Algunos cambios no se han guardado aún. ¿Quiere cancelar?"
diff --git a/src/ui_ng/src/i18n/lang/fr-fr-lang.json b/src/ui_ng/src/i18n/lang/fr-fr-lang.json
index 28784f9fe8..0c965db344 100644
--- a/src/ui_ng/src/i18n/lang/fr-fr-lang.json
+++ b/src/ui_ng/src/i18n/lang/fr-fr-lang.json
@@ -364,7 +364,11 @@
"DELETED_TAG_SUCCESS": "Tag supprimé avec succés.",
"COPY": "Copier",
"NOTARY_IS_UNDETERMINED": "Ne peut pas déterminer la signature de ce tag.",
- "PLACEHOLDER": "Nous ne trouvons aucun dépôt !"
+ "PLACEHOLDER": "Nous ne trouvons aucun dépôt !",
+ "IMAGE": "Images",
+ "ACTION": "ACTION",
+ "DEPLOY": "DEPLOY",
+ "ADDITIONAL_INFO": "Add Additional Info"
},
"ALERT": {
"FORM_CHANGE_CONFIRMATION": "Certaines modifications ne sont pas encore enregistrées. Voulez-vous annuler ?"
diff --git a/src/ui_ng/src/i18n/lang/zh-cn-lang.json b/src/ui_ng/src/i18n/lang/zh-cn-lang.json
index ce2ff9b345..e61f2b90f7 100644
--- a/src/ui_ng/src/i18n/lang/zh-cn-lang.json
+++ b/src/ui_ng/src/i18n/lang/zh-cn-lang.json
@@ -404,6 +404,7 @@
"REPOSITORIES": "镜像仓库",
"OF": "共计",
"ITEMS": "条记录",
+ "NO_ITEMS": "没有记录",
"POP_REPOS": "受欢迎的镜像仓库",
"DELETED_REPO_SUCCESS": "成功删除镜像仓库。",
"DELETED_TAG_SUCCESS": "成功删除镜像标签。",
@@ -415,7 +416,11 @@
"IMAGE": "镜像",
"LABELS": "标签",
"ADD_TO_IMAGE": "添加标签到此镜像",
- "ADD_LABELS": "添加标签"
+ "ADD_LABELS": "添加标签",
+ "FILTER_BY_LABEL": "过滤标签",
+ "ACTION": "操作",
+ "DEPLOY": "部署",
+ "ADDITIONAL_INFO": "添加信息"
},
"ALERT": {
"FORM_CHANGE_CONFIRMATION": "表单内容改变,确认是否取消?"