Skip to content

Commit 2376476

Browse files
freddidierRTEvlo-rte
authored andcommitted
Monitoring processus : stop automatic refresh
Signed-off-by: freddidierRTE <[email protected]>
1 parent dde4001 commit 2376476

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

ui/main/src/app/modules/processmonitoring/processmonitoring.component.ts

-14
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ export class ProcessMonitoringComponent implements OnDestroy, OnInit, AfterViewI
7373
processNames = new Map();
7474
stateColors = new Map();
7575

76-
interval: any;
77-
7876
@ViewChild('filters') filtersTemplate: ArchivesLoggingFiltersComponent;
7977

8078
modalRef: NgbModalRef;
@@ -128,14 +126,6 @@ export class ProcessMonitoringComponent implements OnDestroy, OnInit, AfterViewI
128126

129127
this.results = [];
130128

131-
this.interval = setInterval(() => {
132-
if (this.currentPage === 0) {
133-
this.sendFilterQuery(0, false);
134-
} else {
135-
this.sendFilterQuery(this.currentPage - 1, false);
136-
}
137-
}, 5000);
138-
139129
SelectedCardService.getSelectCardIdChanges().subscribe(
140130
(selectedCardId) => (this.selectedCardId = selectedCardId)
141131
);
@@ -302,10 +292,6 @@ export class ProcessMonitoringComponent implements OnDestroy, OnInit, AfterViewI
302292
}
303293

304294
ngOnDestroy() {
305-
if (this.interval) {
306-
clearInterval(this.interval);
307-
}
308-
309295
if (this.modalRef) {
310296
this.modalRef.close();
311297
}

0 commit comments

Comments
 (0)