mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
fresh page after job finished
Signed-off-by: Meina Zhou <meinaz@vmware.com>
This commit is contained in:
parent
8e438d81d1
commit
03d0ad0faf
@ -3,7 +3,7 @@ import { TranslateService } from '@ngx-translate/core';
|
||||
import { GcJobViewModel, WeekDay } from "./gcLog";
|
||||
import { GcViewModelFactory } from "./gc.viewmodel.factory";
|
||||
import { GcRepoService } from "./gc.service";
|
||||
import { WEEKDAYS, SCHEDULE_TYPE, ONE_MINITUE} from './gc.const';
|
||||
import { WEEKDAYS, SCHEDULE_TYPE, ONE_MINITUE, THREE_SECONDS} from './gc.const';
|
||||
import { GcUtility } from './gc.utility';
|
||||
import { ErrorHandler } from '@harbor/ui';
|
||||
|
||||
@ -90,6 +90,7 @@ export class GcComponent implements OnInit {
|
||||
this.errorHandler.info(res);
|
||||
});
|
||||
this.getJobs();
|
||||
setTimeout(() => {this.getJobs(); }, THREE_SECONDS); // to avoid some jobs not finished.
|
||||
}, error => {
|
||||
this.errorHandler.error(error);
|
||||
});
|
||||
|
@ -15,6 +15,7 @@ export const SCHEDULE_TYPE = {
|
||||
};
|
||||
|
||||
export const ONE_MINITUE = 60000;
|
||||
export const THREE_SECONDS = 3000;
|
||||
|
||||
|
||||
|
||||
|
@ -819,6 +819,7 @@
|
||||
"PENDING":"Pending",
|
||||
"FINISHED":"Finished",
|
||||
"STOPPED":"Stopped",
|
||||
"RUNNING":"Running",
|
||||
"ERROR":"Error",
|
||||
"SCHEDULE": {
|
||||
"NONE": "None",
|
||||
|
@ -816,6 +816,7 @@
|
||||
"PENDING":"Pending",
|
||||
"FINISHED":"Finished",
|
||||
"STOPPED":"Stopped",
|
||||
"RUNNING":"Running",
|
||||
"ERROR":"Error",
|
||||
"SCHEDULE": {
|
||||
"NONE": "None",
|
||||
|
@ -779,6 +779,7 @@
|
||||
"PENDING":"Pending",
|
||||
"FINISHED":"Finished",
|
||||
"STOPPED":"Stopped",
|
||||
"RUNNING":"Running",
|
||||
"ERROR":"Error",
|
||||
"SCHEDULE": {
|
||||
"NONE": "None",
|
||||
|
@ -815,6 +815,7 @@
|
||||
"PENDING":"未开始",
|
||||
"FINISHED":"已完成",
|
||||
"STOPPED":"已停止",
|
||||
"RUNNING":"执行中",
|
||||
"ERROR":"错误",
|
||||
"SCHEDULE": {
|
||||
"NONE": "无",
|
||||
|
Loading…
Reference in New Issue
Block a user