|
|
@ -109,16 +109,16 @@ export class BikesComponent implements OnInit {
|
|
|
|
tableDataGQLCreateInputType: string = 'CargoBikeCreateInput';
|
|
|
|
tableDataGQLCreateInputType: string = 'CargoBikeCreateInput';
|
|
|
|
tableDataGQLUpdateInputType: string = 'CargoBikeUpdateInput';
|
|
|
|
tableDataGQLUpdateInputType: string = 'CargoBikeUpdateInput';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
headline = 'Lastenräder';
|
|
|
|
|
|
|
|
|
|
|
|
loadingRowIds: string[] = [];
|
|
|
|
loadingRowIds: string[] = [];
|
|
|
|
constructor(
|
|
|
|
constructor(private bikesService: BikesService) {}
|
|
|
|
private bikesService: BikesService
|
|
|
|
|
|
|
|
) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
ngOnInit() {
|
|
|
|
this.dataService = this.bikesService;
|
|
|
|
this.dataService = this.bikesService;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
create(object: {currentId: string, row: any}) {
|
|
|
|
create(object: { currentId: string; row: any }) {
|
|
|
|
this.bikesService.createBike(object.currentId, { bike: object.row });
|
|
|
|
this.bikesService.createBike(object.currentId, { bike: object.row });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|