Skip to content

Commit

Permalink
Merge pull request #38 from senbagaraman04/dev_addVehicle
Browse files Browse the repository at this point in the history
Code complexity issue fixed
  • Loading branch information
senbagaraman04 authored Feb 8, 2020
2 parents 4d3a99a + 52d4806 commit 2b9b7cd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export class VehicleDetailsComponent implements OnInit {
cityOfTravel: new FormControl(this.vehicle ? this.vehicle.cityOfTravel : '', Validators.required),
vehicleNumber: new FormControl(this.vehicle ? this.vehicle.vehicleNumber : '', Validators.required),
dateStart: new FormControl(this.vehicle? this.vehicle.dateStart : '',Validators.required),
driverName: new FormControl(this.vehicle? this.vehicle.driverName : '',Validators.required),
driverName: new FormControl(this.vehicle? this.vehicle.driverName : '',Validators.required)
});

this.myForm = this.formBuilder.group({
driverNumber: new FormControl(this.vehicle? this.vehicle.driverNumber : '',Validators.required),
startingMeter: new FormControl(this.vehicle? this.vehicle.startingMeter : '',Validators.required),
endingMeter: new FormControl(this.vehicle? this.vehicle.endingMeter : ''),
Expand Down

0 comments on commit 2b9b7cd

Please sign in to comment.