Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Add make filter on client side | 8723fcfe5cfcdc96700c4cc0a923551c6ba9e6e6 | antcalatayud | 2019-03-01 12:17:47 |
Start adding the filter | 585116126385b86a3e091e709296356e401e8bdf | antcalatayud | 2019-03-01 12:13:25 |
Added html to list componenet. Fix bug with vehicle service json | 02ab64b8fc3bd28dfa7316a5b9861c2ad24157c6 | antcalatayud | 2019-03-01 11:54:49 |
Add vehcile list component logic | f96645d6de189b56c4f5d2dd01916e2b13ac4253 | antcalatayud | 2019-03-01 11:09:55 |
API get vehicles API. Fix bug *ngIf | cba365b66c9bf87c6142f09ef2a673bfec91e837 | antcalatayud | 2019-03-01 10:24:59 |
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 |
File | Lines added | Lines deleted |
---|---|---|
ClientApp/src/app/vehicle-list/vehicle-list.component.ts | 8 | 2 |
File ClientApp/src/app/vehicle-list/vehicle-list.component.ts changed (mode: 100644) (index 1e224ec..2e1eeae) | |||
... | ... | import { Vehicle, KeyValuePair } from '../models/vehicle'; | |
10 | 10 | ||
11 | 11 | export class VehicleListComponent implements OnInit { | export class VehicleListComponent implements OnInit { |
12 | 12 | vehicles: Vehicle[]; | vehicles: Vehicle[]; |
13 | allVehicles : Vehicle[]; | ||
13 | 14 | makes: KeyValuePair[]; | makes: KeyValuePair[]; |
14 | 15 | filter: any ={}; | filter: any ={}; |
15 | 16 | ||
... | ... | export class VehicleListComponent implements OnInit { | |
20 | 21 | .subscribe(makes => this.makes = makes); | .subscribe(makes => this.makes = makes); |
21 | 22 | ||
22 | 23 | this.vehicleService.getVehicles() | this.vehicleService.getVehicles() |
23 | .subscribe(vehicles => this.vehicles = vehicles); | ||
24 | .subscribe(vehicles => this.vehicles = this.allVehicles = vehicles); | ||
24 | 25 | } | } |
25 | 26 | ||
26 | 27 | onFilterChange() { | onFilterChange() { |
27 | |||
28 | var vehicles = this.allVehicles; | ||
29 | |||
30 | if (this.filter.makeId) | ||
31 | vehicles = vehicles.filter(v => v.make.id == this.filter.makeId) | ||
32 | |||
33 | this.vehicles = vehicles; | ||
28 | 34 | } | } |
29 | 35 | ||
30 | 36 | } | } |