Skip to content

Commit

Permalink
Reset param forceReload
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jul 23, 2024
1 parent 2e81f87 commit 5b09a16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ export class MonitoringListComponent implements OnInit {

@Input() currentUser;
@Input() filters;
@Input() forceReload;
@Output() filtersChange: EventEmitter<Object> = new EventEmitter<Object>();

@Input() forceReload;
@Output() forceReloadChange = new EventEmitter<boolean>();

@Input() objectListType: string;
@Output() objectListTypeChange: EventEmitter<string> = new EventEmitter<string>();

Expand Down Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2>Chargement en cours</h2>
<pnx-monitoring-lists [(obj)]="obj" [(bEdit)]="bEdit" [(filters)]="filters"
[(objectListType)]="objectListType" *ngIf="!bEdit && obj && obj.bIsInitialized && moduleSet"
[(selectedObject)] = "selectedObject"
[forceReload] = "forceReload"
[(forceReload)] = "forceReload"
(onDeleteRow) = "onDeleteRowChange($event)"
[currentUser]="currentUser"></pnx-monitoring-lists>
</div>
Expand Down

0 comments on commit 5b09a16

Please sign in to comment.