diff --git a/src/portal/lib/src/tag/tag.component.html b/src/portal/lib/src/tag/tag.component.html
index 1c705be9e..9df2ddad1 100644
--- a/src/portal/lib/src/tag/tag.component.html
+++ b/src/portal/lib/src/tag/tag.component.html
@@ -85,8 +85,8 @@
{{'REPOSITORY.CREATED' | translate}}
{{'REPOSITORY.DOCKER_VERSION' | translate}}
{{'REPOSITORY.LABELS' | translate}}
- {{'REPOSITORY.PUSH_TIME' | translate}}
- {{'REPOSITORY.PULL_TIME' | translate}}
+ {{'REPOSITORY.PUSH_TIME' | translate}}
+ {{'REPOSITORY.PULL_TIME' | translate}}
{{'TAG.PLACEHOLDER' | translate }}
diff --git a/src/portal/lib/src/tag/tag.component.ts b/src/portal/lib/src/tag/tag.component.ts
index 71eec3b96..61dd6ac36 100644
--- a/src/portal/lib/src/tag/tag.component.ts
+++ b/src/portal/lib/src/tag/tag.component.ts
@@ -107,6 +107,8 @@ export class TagComponent implements OnInit, AfterViewInit {
showlabel: boolean;
createdComparator: Comparator = new CustomComparator("created", "date");
+ pullComparator: Comparator = new CustomComparator("pull_time", "date");
+ pushComparator: Comparator = new CustomComparator("push_time", "date");
loading = false;
copyFailed = false;
@@ -272,7 +274,7 @@ export class TagComponent implements OnInit, AfterViewInit {
this.tags = doFiltering(tags, state);
this.tags = doSorting(this.tags, state);
this.tags = this.tags.map(tag => {
- tag.push_time = tag.push_time === AVAILABLE_TIME ? '' : tag.push_time;
+ tag.pull_time = tag.pull_time === AVAILABLE_TIME ? '' : tag.pull_time;
return tag;
});
this.loading = false;
@@ -543,7 +545,7 @@ export class TagComponent implements OnInit, AfterViewInit {
}
});
this.tags = items.map(tag => {
- tag.push_time = tag.push_time === AVAILABLE_TIME ? '' : tag.push_time;
+ tag.pull_time = tag.pull_time === AVAILABLE_TIME ? '' : tag.pull_time;
return tag;
});
let signedName: { [key: string]: string[] } = {};