Subscribe au bon endroit pour un refresh
correct de la liste des infos.
This commit is contained in:
@@ -31,8 +31,10 @@ export class NewAircraftComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
this.serviceApi.AddAircraft(formData.aircraftName, this.selectedFile);
|
||||
this.serviceComm.RefreshData(AddAction.Aircraft);
|
||||
this.serviceApi.AddAircraft(formData.aircraftName, this.selectedFile)
|
||||
.subscribe(() => {
|
||||
this.serviceComm.RefreshData(AddAction.Aircraft);
|
||||
});
|
||||
}
|
||||
|
||||
public onFileChanged(fileInput: any) {
|
||||
|
||||
Reference in New Issue
Block a user