From 5b09a16eede2bd518585d7c10f1b45abd716f87d Mon Sep 17 00:00:00 2001 From: amandine-sahl Date: Tue, 9 Apr 2024 14:30:10 +0200 Subject: [PATCH] Reset param forceReload --- .../monitoring-lists/monitoring-lists.component.ts | 11 +++++++++-- .../monitoring-object.component.html | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/monitoring-lists/monitoring-lists.component.ts b/frontend/app/components/monitoring-lists/monitoring-lists.component.ts index 0557f92c5..d8736fa58 100644 --- a/frontend/app/components/monitoring-lists/monitoring-lists.component.ts +++ b/frontend/app/components/monitoring-lists/monitoring-lists.component.ts @@ -20,8 +20,11 @@ export class MonitoringListComponent implements OnInit { @Input() currentUser; @Input() filters; - @Input() forceReload; @Output() filtersChange: EventEmitter = new EventEmitter(); + + @Input() forceReload; + @Output() forceReloadChange = new EventEmitter(); + @Input() objectListType: string; @Output() objectListTypeChange: EventEmitter = new EventEmitter(); @@ -143,7 +146,11 @@ export class MonitoringListComponent implements OnInit { this.initDataTable(); break; case 'forceReload': - this.initDataTable(); + if (cur == true) { + this.initDataTable(); + this.forceReload = false; + this.forceReloadChange.emit(false); + } break; } } diff --git a/frontend/app/components/monitoring-object/monitoring-object.component.html b/frontend/app/components/monitoring-object/monitoring-object.component.html index 17e6474e1..3e44ad963 100644 --- a/frontend/app/components/monitoring-object/monitoring-object.component.html +++ b/frontend/app/components/monitoring-object/monitoring-object.component.html @@ -35,7 +35,7 @@

Chargement en cours