Api umgebaut
This commit is contained in:
@@ -45,17 +45,19 @@ export class CylinderComponent {
|
||||
}
|
||||
|
||||
loadCylinders() {
|
||||
this.api.getCylinders().subscribe({
|
||||
next: n => {
|
||||
this.gridApi.setGridOption("rowData", n);
|
||||
this.gridApi.setGridOption("loading", false);
|
||||
}
|
||||
})
|
||||
this.gridApi.setGridOption("loading", true);
|
||||
this.api.refreshCylinders();
|
||||
}
|
||||
|
||||
onGridReady(params: GridReadyEvent) {
|
||||
this.gridApi = params.api;
|
||||
this.loadCylinders();
|
||||
this.api.cylinders.asObservable().subscribe({
|
||||
next: (data) => {
|
||||
this.gridApi.setGridOption("rowData", data);
|
||||
this.gridApi.setGridOption("loading", false);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
openCreateCylinder() {
|
||||
|
||||
Reference in New Issue
Block a user