mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +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 { GcJobViewModel, WeekDay } from "./gcLog";
|
||||||
import { GcViewModelFactory } from "./gc.viewmodel.factory";
|
import { GcViewModelFactory } from "./gc.viewmodel.factory";
|
||||||
import { GcRepoService } from "./gc.service";
|
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 { GcUtility } from './gc.utility';
|
||||||
import { ErrorHandler } from '@harbor/ui';
|
import { ErrorHandler } from '@harbor/ui';
|
||||||
|
|
||||||
@ -90,6 +90,7 @@ export class GcComponent implements OnInit {
|
|||||||
this.errorHandler.info(res);
|
this.errorHandler.info(res);
|
||||||
});
|
});
|
||||||
this.getJobs();
|
this.getJobs();
|
||||||
|
setTimeout(() => {this.getJobs(); }, THREE_SECONDS); // to avoid some jobs not finished.
|
||||||
}, error => {
|
}, error => {
|
||||||
this.errorHandler.error(error);
|
this.errorHandler.error(error);
|
||||||
});
|
});
|
||||||
|
@ -15,6 +15,7 @@ export const SCHEDULE_TYPE = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const ONE_MINITUE = 60000;
|
export const ONE_MINITUE = 60000;
|
||||||
|
export const THREE_SECONDS = 3000;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -819,6 +819,7 @@
|
|||||||
"PENDING":"Pending",
|
"PENDING":"Pending",
|
||||||
"FINISHED":"Finished",
|
"FINISHED":"Finished",
|
||||||
"STOPPED":"Stopped",
|
"STOPPED":"Stopped",
|
||||||
|
"RUNNING":"Running",
|
||||||
"ERROR":"Error",
|
"ERROR":"Error",
|
||||||
"SCHEDULE": {
|
"SCHEDULE": {
|
||||||
"NONE": "None",
|
"NONE": "None",
|
||||||
|
@ -816,6 +816,7 @@
|
|||||||
"PENDING":"Pending",
|
"PENDING":"Pending",
|
||||||
"FINISHED":"Finished",
|
"FINISHED":"Finished",
|
||||||
"STOPPED":"Stopped",
|
"STOPPED":"Stopped",
|
||||||
|
"RUNNING":"Running",
|
||||||
"ERROR":"Error",
|
"ERROR":"Error",
|
||||||
"SCHEDULE": {
|
"SCHEDULE": {
|
||||||
"NONE": "None",
|
"NONE": "None",
|
||||||
|
@ -779,6 +779,7 @@
|
|||||||
"PENDING":"Pending",
|
"PENDING":"Pending",
|
||||||
"FINISHED":"Finished",
|
"FINISHED":"Finished",
|
||||||
"STOPPED":"Stopped",
|
"STOPPED":"Stopped",
|
||||||
|
"RUNNING":"Running",
|
||||||
"ERROR":"Error",
|
"ERROR":"Error",
|
||||||
"SCHEDULE": {
|
"SCHEDULE": {
|
||||||
"NONE": "None",
|
"NONE": "None",
|
||||||
|
@ -815,6 +815,7 @@
|
|||||||
"PENDING":"未开始",
|
"PENDING":"未开始",
|
||||||
"FINISHED":"已完成",
|
"FINISHED":"已完成",
|
||||||
"STOPPED":"已停止",
|
"STOPPED":"已停止",
|
||||||
|
"RUNNING":"执行中",
|
||||||
"ERROR":"错误",
|
"ERROR":"错误",
|
||||||
"SCHEDULE": {
|
"SCHEDULE": {
|
||||||
"NONE": "无",
|
"NONE": "无",
|
||||||
|
Loading…
Reference in New Issue
Block a user