Enable extra field for Global Configurations (#1693)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-02-28 20:52:20 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent f6ed3c1914
commit 180264e5f4
6 changed files with 66 additions and 15 deletions
@@ -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);
}