Enable extra field for Global Configurations (#1693)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
f6ed3c1914
commit
180264e5f4
@@ -8,7 +8,7 @@ import { SystemService } from 'app/system/system.service';
|
||||
})
|
||||
export class CobWorkflowComponent implements OnInit, OnDestroy {
|
||||
|
||||
waitTime: number = 30000;
|
||||
waitTime = 30000;
|
||||
|
||||
isCatchUpRunning = false;
|
||||
/** Timer to refetch COB Catch-Up status every 5 seconds */
|
||||
@@ -27,6 +27,9 @@ export class CobWorkflowComponent implements OnInit, OnDestroy {
|
||||
getCOBCatchUpStatus(): void {
|
||||
this.systemService.getCOBCatchUpStatus().subscribe((response: any) => {
|
||||
this.isCatchUpRunning = response.isCatchUpRunning;
|
||||
if (!this.isCatchUpRunning) {
|
||||
this.waitTime = 30000;
|
||||
}
|
||||
});
|
||||
this.timer = setTimeout(() => { this.getCOBCatchUpStatus(); }, this.waitTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user