Subscribe au bon endroit pour un refresh
correct de la liste des infos.
This commit is contained in:
@@ -47,7 +47,7 @@ export class NewGearComponent implements OnInit {
|
||||
);
|
||||
}
|
||||
|
||||
ngOnInit() {}
|
||||
ngOnInit() { }
|
||||
|
||||
onSubmit(formData) {
|
||||
this.serviceApi.AddGear(formData.name,
|
||||
@@ -56,8 +56,9 @@ export class NewGearComponent implements OnInit {
|
||||
+formData.maxSize,
|
||||
formData.aad,
|
||||
formData.mainCanopy,
|
||||
formData.reserveCanopy
|
||||
);
|
||||
this.serviceComm.RefreshData(AddAction.Gear);
|
||||
formData.reserveCanopy)
|
||||
.subscribe(() => {
|
||||
this.serviceComm.RefreshData(AddAction.Gear);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user