WEB-559: Do not call blindly "Is loan catch up running" API
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnDestroy, OnInit, inject } from '@angular/core';
|
import { Component, Input, OnDestroy, inject } from '@angular/core';
|
||||||
import { SystemService } from 'app/system/system.service';
|
import { SystemService } from 'app/system/system.service';
|
||||||
import { environment } from '../../../../environments/environment';
|
import { environment } from '../../../../environments/environment';
|
||||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||||
@@ -15,7 +15,7 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
|||||||
LoanLockedComponent
|
LoanLockedComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class CobWorkflowComponent implements OnInit, OnDestroy {
|
export class CobWorkflowComponent implements OnDestroy {
|
||||||
private systemService = inject(SystemService);
|
private systemService = inject(SystemService);
|
||||||
|
|
||||||
/** Wait time between API status calls 30 seg */
|
/** Wait time between API status calls 30 seg */
|
||||||
@@ -25,10 +25,6 @@ export class CobWorkflowComponent implements OnInit, OnDestroy {
|
|||||||
/** Timer to refetch COB Catch-Up status every 5 seconds */
|
/** Timer to refetch COB Catch-Up status every 5 seconds */
|
||||||
timer: any;
|
timer: any;
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
this.getCOBCatchUpStatus();
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user