List of commits:
Subject Hash Author Date (UTC)
Add delete vehicle functionality ec8398b6bb475a8326491ec59de955c55c1d8ee9 Antonio Calatayud 2019-02-18 16:41:02
Update vehicle c35c1d2f0ef4cc27bab1c261e4655a7a91eb1c7c Antonio Calatayud 2019-02-18 16:24:34
Populate checkboxes form. Fixed typo isRegistered 49b9fad3eb0ff05358e47eab61c6d06428f3d632 Antonio Calatayud 2019-02-18 15:50:04
Populate Model dropdown when form is vehicle form populated e71ebedf4a0bf1572dda7885eefd96d119693d69 Antonio Calatayud 2019-02-18 15:18:45
Prepare vehicle object to fill form db2a4dbb892ab8fdec34cf19cddcf6a5aa99d3aa antonio.calatayud 2019-01-29 16:46:02
Make parralle request to load vehicle b66d537ee97e2b0d1840e1440e04ea56b27e9557 antonio.calatayud 2019-01-28 16:50:35
Add get vehicle methon on vehicle service 27c078d382ae489c49855b77d0151ea506486a96 antonio.calatayud 2019-01-28 15:55:08
Add "logging" on prod mode - just example ead0ba75a9cf099e37676ab95f60a37aa3b883ca antonio.calatayud 2019-01-14 16:36:16
Add ngxToasta and global error handler cb0935ff5752b72870b6b9b5138e76fd0f7d7718 antonio.calatayud 2019-01-14 12:42:32
Remove font awesome 9ba33a938e20010daf4743f75301c994ec043a9d antonio.calatayud 2019-01-14 10:32:05
Updating solution to Angular 7 and bootsrap4. Missing font-awesome c277172b144f2d0c11fd9a246eaf4d00dedd6092 antonio.calatayud 2019-01-09 16:06:28
Implemented client side validation on new vehicle 10a9108113bdfbe2ae3b998a32633702e4bc13fc Antonio Calatayud 2019-01-08 16:24:50
Implement submit form 1e197fc2a202658d14526f2791b0a4a1dc4f568b Antonio Calatayud 2019-01-08 16:10:49
Biniding inputs to vehicle object d971e6fcc584e947b65547024fa9fd5407089b3e Antonio Calatayud 2019-01-08 16:04:25
Move Vehicle repository to UoW 440e32fd438f2143e1453e4504a383b3d09af016 Antonio Calatayud 2019-01-08 15:31:51
Move Models to Core and fix namespaces 7120645b3fb5c63653e56570280bf505d2dbf4ed Antonio Calatayud 2019-01-08 15:11:32
Start implementing UnitOfwork pattern d458f0ca3bced9b78880977ee11c3437633b7da0 Antonio Calatayud 2019-01-08 12:03:18
Move more context queries to repository 2cce05a668e039917d2c0967aa97eb3786dd5de2 Antonio Calatayud 2019-01-06 17:59:17
Start implementing repository pattern 1d0b0cd78bc861d0e0282a69e5d88b219efbb118 Antonio Calatayud 2019-01-06 17:37:57
Return all inf when update/added vehicle ef44980290b644244de12ad9e064ca6dcee0ac2b Antonio Calatayud 2019-01-04 16:51:50
Commit ec8398b6bb475a8326491ec59de955c55c1d8ee9 - Add delete vehicle functionality
Author: Antonio Calatayud
Author date (UTC): 2019-02-18 16:41
Committer name: Antonio Calatayud
Committer date (UTC): 2019-02-18 16:41
Parent(s): c35c1d2f0ef4cc27bab1c261e4655a7a91eb1c7c
Signing key:
Tree: f9520e42916f6a53dcc8c15d0b99919f17a0fc5f
File Lines added Lines deleted
ClientApp/src/app/services/vehicle.service.ts 6 2
ClientApp/src/app/vehicule-form/vehicule-form.component.html 1 0
ClientApp/src/app/vehicule-form/vehicule-form.component.ts 10 1
File ClientApp/src/app/services/vehicle.service.ts changed (mode: 100644) (index 295340e..eeeb9eb)
... ... import { SaveVehicle } from '../models/vehicle';
5 5
6 6 @Injectable() @Injectable()
7 7 export class VehicleService { export class VehicleService {
8
9
8
10 9 constructor(private http: Http) { } constructor(private http: Http) { }
11 10
12 11 getMakes(){ getMakes(){
 
... ... export class VehicleService {
33 32 return this.http.put('/api/vehicles/' + vehicle.id, vehicle) return this.http.put('/api/vehicles/' + vehicle.id, vehicle)
34 33 .pipe(map((res: any) => res.json())); .pipe(map((res: any) => res.json()));
35 34 } }
35
36 delete(id: number): any {
37 return this.http.delete('api/vehicles/' + id)
38 .pipe(map((res: any) => res.json()));
39 }
36 40 } }
File ClientApp/src/app/vehicule-form/vehicule-form.component.html changed (mode: 100644) (index afe0b96..7bd145a)
58 58 <input id="contactEmail" type="text" class="form-control" [(ngModel)]="vehicle.contact.email" name="contacEmail"> <input id="contactEmail" type="text" class="form-control" [(ngModel)]="vehicle.contact.email" name="contacEmail">
59 59 </div> </div>
60 60 <button class="btn btn-primary" [disabled]="!f.valid" >Save</button> <button class="btn btn-primary" [disabled]="!f.valid" >Save</button>
61 <button *ngId="vehicle.id" class="btn btn-danger" type="button" (click)="delete()">Delete</button>
61 62 </form> </form>
File ClientApp/src/app/vehicule-form/vehicule-form.component.ts changed (mode: 100644) (index be93bfe..505e32a)
... ... export class VehiculeFormComponent implements OnInit {
110 110 this.vehicleService.create(this.vehicle) this.vehicleService.create(this.vehicle)
111 111 .subscribe(x => console.log(x)); .subscribe(x => console.log(x));
112 112 } }
113
113 }
114
115 delete(){
116 if (confirm("Are you sure?"))
117 {
118 this.vehicleService.delete(this.vehicle.id)
119 .subscribe(x => {
120 this.router.navigate(['/home']);
121 });
122 }
114 123 } }
115 124 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/antcalatayud/vega

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/antcalatayud/vega

Clone this repository using git:
git clone git://git.rocketgit.com/user/antcalatayud/vega

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main