mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 07:07:42 +01:00
Merge pull request #9739 from jwangyangls/fix-pull-time-sort
Fix the bug of cannot soft by pull time
This commit is contained in:
commit
a2dcdf8948
@ -154,7 +154,7 @@
|
|||||||
<div class="cell">{{t.push_time | date: 'short'}}</div>
|
<div class="cell">{{t.push_time | date: 'short'}}</div>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<div class="cell">{{t.pull_time | date: 'short'}}</div>
|
<div class="cell">{{t.pull_time === availableTime ? "" : (t.pull_time| date: 'short')}}</div>
|
||||||
</clr-dg-cell>
|
</clr-dg-cell>
|
||||||
</clr-dg-row>
|
</clr-dg-row>
|
||||||
<clr-dg-footer>
|
<clr-dg-footer>
|
||||||
|
@ -91,7 +91,7 @@ export class TagComponent implements OnInit, AfterViewInit {
|
|||||||
|
|
||||||
|
|
||||||
tags: Tag[];
|
tags: Tag[];
|
||||||
|
availableTime = AVAILABLE_TIME;
|
||||||
showTagManifestOpened: boolean;
|
showTagManifestOpened: boolean;
|
||||||
retagDialogOpened: boolean;
|
retagDialogOpened: boolean;
|
||||||
manifestInfoTitle: string;
|
manifestInfoTitle: string;
|
||||||
@ -273,10 +273,6 @@ export class TagComponent implements OnInit, AfterViewInit {
|
|||||||
// Do filtering and sorting
|
// Do filtering and sorting
|
||||||
this.tags = doFiltering<Tag>(tags, state);
|
this.tags = doFiltering<Tag>(tags, state);
|
||||||
this.tags = doSorting<Tag>(this.tags, state);
|
this.tags = doSorting<Tag>(this.tags, state);
|
||||||
this.tags = this.tags.map(tag => {
|
|
||||||
tag.pull_time = tag.pull_time === AVAILABLE_TIME ? '' : tag.pull_time;
|
|
||||||
return tag;
|
|
||||||
});
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}, error => {
|
}, error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -533,10 +529,7 @@ export class TagComponent implements OnInit, AfterViewInit {
|
|||||||
signatures.push(t.name);
|
signatures.push(t.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.tags = items.map(tag => {
|
this.tags = items;
|
||||||
tag.pull_time = tag.pull_time === AVAILABLE_TIME ? '' : tag.pull_time;
|
|
||||||
return tag;
|
|
||||||
});
|
|
||||||
let signedName: { [key: string]: string[] } = {};
|
let signedName: { [key: string]: string[] } = {};
|
||||||
signedName[this.repoName] = signatures;
|
signedName[this.repoName] = signatures;
|
||||||
this.signatureOutput.emit(signedName);
|
this.signatureOutput.emit(signedName);
|
||||||
|
Loading…
Reference in New Issue
Block a user