mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01:00
Fix tag retention ui loading issue (#13905)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
2ae57cdeb5
commit
bd585481c7
@ -358,9 +358,8 @@ export class TagRetentionComponent implements OnInit {
|
||||
|
||||
loadLog() {
|
||||
if (this.isDetailOpened) {
|
||||
setTimeout(() => {
|
||||
setTimeout(() => {// when this.isDetailOpened is true, need to wait ngCheck finished
|
||||
this.loadingHistories = true;
|
||||
}, 0);
|
||||
this.tagRetentionService.getExecutionHistory(this.retentionId, this.executionId, this.currentLogPage, this.logPageSize)
|
||||
.pipe(finalize(() => this.loadingHistories = false))
|
||||
.subscribe(
|
||||
@ -385,6 +384,7 @@ export class TagRetentionComponent implements OnInit {
|
||||
}, error => {
|
||||
this.errorHandler.error(error);
|
||||
});
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
openDetail(index, executionId) {
|
||||
|
Loading…
Reference in New Issue
Block a user