fix(ad pause): fix code after merge of update ad
This commit is contained in:
parent
d937a84182
commit
b52644ee3b
|
@ -81,6 +81,7 @@ export class AdFactory {
|
||||||
seatsProposed: ad.seatsProposed,
|
seatsProposed: ad.seatsProposed,
|
||||||
seatsRequested: ad.seatsRequested,
|
seatsRequested: ad.seatsRequested,
|
||||||
strict: ad.strict,
|
strict: ad.strict,
|
||||||
|
pause: ad.pause,
|
||||||
waypoints: ad.waypoints,
|
waypoints: ad.waypoints,
|
||||||
points: points!,
|
points: points!,
|
||||||
driverDistance,
|
driverDistance,
|
||||||
|
|
|
@ -15,6 +15,7 @@ export interface UserAd {
|
||||||
seatsProposed: number;
|
seatsProposed: number;
|
||||||
seatsRequested: number;
|
seatsRequested: number;
|
||||||
strict: boolean;
|
strict: boolean;
|
||||||
|
pause: boolean;
|
||||||
waypoints: PointProps[];
|
waypoints: PointProps[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,12 +30,12 @@ export interface AdProps {
|
||||||
seatsProposed: number;
|
seatsProposed: number;
|
||||||
seatsRequested: number;
|
seatsRequested: number;
|
||||||
strict: boolean;
|
strict: boolean;
|
||||||
|
pause: boolean;
|
||||||
driverDuration?: number;
|
driverDuration?: number;
|
||||||
driverDistance?: number;
|
driverDistance?: number;
|
||||||
passengerDuration?: number;
|
passengerDuration?: number;
|
||||||
passengerDistance?: number;
|
passengerDistance?: number;
|
||||||
waypoints: PointProps[];
|
waypoints: PointProps[];
|
||||||
pause: boolean;
|
|
||||||
points: PointProps[];
|
points: PointProps[];
|
||||||
fwdAzimuth: number;
|
fwdAzimuth: number;
|
||||||
backAzimuth: number;
|
backAzimuth: number;
|
||||||
|
@ -52,8 +53,8 @@ export interface CreateAdProps {
|
||||||
seatsProposed: number;
|
seatsProposed: number;
|
||||||
seatsRequested: number;
|
seatsRequested: number;
|
||||||
strict: boolean;
|
strict: boolean;
|
||||||
waypoints: PointProps[];
|
|
||||||
pause: boolean;
|
pause: boolean;
|
||||||
|
waypoints: PointProps[];
|
||||||
driverDuration?: number;
|
driverDuration?: number;
|
||||||
driverDistance?: number;
|
driverDistance?: number;
|
||||||
passengerDuration?: number;
|
passengerDuration?: number;
|
||||||
|
|
|
@ -54,6 +54,7 @@ function createAdPropsDefaults(): CreateAdProps {
|
||||||
seatsProposed: 1,
|
seatsProposed: 1,
|
||||||
seatsRequested: 1,
|
seatsRequested: 1,
|
||||||
strict: false,
|
strict: false,
|
||||||
|
pause: false,
|
||||||
waypoints: [],
|
waypoints: [],
|
||||||
points: [],
|
points: [],
|
||||||
driverDuration: 0,
|
driverDuration: 0,
|
||||||
|
|
Loading…
Reference in New Issue