|
1 | 1 | // @flow |
2 | 2 |
|
3 | | -import {camelCaseKeys} from '../../../common/util/map-keys' |
4 | 3 | import clone from 'lodash/cloneDeep' |
5 | 4 | import objectPath from 'object-path' |
6 | 5 | import React, {Component} from 'react' |
7 | 6 | import {Button} from 'react-bootstrap' |
8 | 7 |
|
| 8 | +import {camelCaseKeys} from '../../../common/util/map-keys' |
9 | 9 | import * as activeActions from '../../actions/active' |
10 | 10 | import * as tripActions from '../../actions/trip' |
11 | 11 | import {ENTITY} from '../../constants' |
12 | 12 | import {generateNullProps} from '../../util/gtfs' |
13 | 13 | import {entityIsNew} from '../../util/objects' |
14 | 14 | import {isTimeFormat} from '../../util/timetable' |
15 | | -import Timetable from './Timetable' |
16 | | -import TimetableHeader from './TimetableHeader' |
17 | | -import TimetableHelpModal from './TimetableHelpModal' |
18 | | - |
19 | 15 | import type {Props as ContainerProps} from '../../containers/ActiveTimetableEditor' |
20 | 16 | import type {Feed, FetchStatus, Pattern, StopTime, TimetableColumn, Trip, TripCounts} from '../../../types' |
21 | 17 | import type {TripValidationIssues} from '../../selectors/timetable' |
22 | 18 | import type {EditorTables, TimetableState} from '../../../types/reducers' |
23 | 19 |
|
| 20 | +import TimetableHelpModal from './TimetableHelpModal' |
| 21 | +import TimetableHeader from './TimetableHeader' |
| 22 | +import Timetable from './Timetable' |
| 23 | + |
24 | 24 | type Props = ContainerProps & { |
25 | 25 | activeCell?: ?string, |
26 | 26 | activePattern: Pattern, |
@@ -192,6 +192,8 @@ export default class TimetableEditor extends Component<Props, State> { |
192 | 192 | cumulativeTravelTime += +stop.defaultDwellTime |
193 | 193 | // if (stop.timepoint === null || stop.timepoint) { |
194 | 194 | objectPath.set(newRow, `stopTimes.${i}.departureTime`, cumulativeTravelTime) |
| 195 | + objectPath.set(newRow, `stopTimes.${i}.continuousPickup`, stop.continuousPickup) |
| 196 | + objectPath.set(newRow, `stopTimes.${i}.continuousDropOff`, stop.continuousDropOff) |
195 | 197 | objectPath.set(newRow, `stopTimes.${i}.timepoint`, stop.timepoint || 0) |
196 | 198 | objectPath.set(newRow, `stopTimes.${i}.shapeDistTraveled`, stop.shapeDistTraveled) |
197 | 199 | // Use pattern stop index to set stop sequence. Stop sequences should all |
|
0 commit comments