@@ -8,14 +8,14 @@ import {Link} from 'react-router'
88import ManagerPage from '../../common/components/ManagerPage'
99import OptionButton from '../../common/components/OptionButton'
1010import * as gtfsPlusActions from '../actions/gtfsplus'
11- import GtfsPlusTable from './GtfsPlusTable'
1211import { getGtfsPlusSpec } from '../../common/util/config'
1312import * as feedsActions from '../../manager/actions/feeds'
14-
1513import type { Props as ContainerProps } from '../containers/ActiveGtfsPlusEditor'
16- import type { Feed , FeedVersion , GtfsPlusValidation , Project } from '../../types'
14+ import type { Feed , FeedVersionSummary , GtfsPlusValidation , Project } from '../../types'
1715import type { ManagerUserState } from '../../types/reducers'
1816
17+ import GtfsPlusTable from './GtfsPlusTable'
18+
1919export type Props = ContainerProps & {
2020 activeTableId : string ,
2121 addGtfsPlusRow : typeof gtfsPlusActions . addGtfsPlusRow ,
@@ -24,8 +24,8 @@ export type Props = ContainerProps & {
2424 downloadGtfsPlusFeed : typeof gtfsPlusActions . downloadGtfsPlusFeed ,
2525 feedSource : Feed ,
2626 feedSourceId : string ,
27- feedVersion : FeedVersion ,
2827 feedVersionId : string ,
28+ feedVersionSummary : FeedVersionSummary ,
2929 fetchFeedSourceAndProject : typeof feedsActions . fetchFeedSourceAndProject ,
3030 gtfsEntityLookup : Object ,
3131 loadGtfsEntities : typeof gtfsPlusActions . loadGtfsEntities ,
@@ -100,8 +100,8 @@ export default class GtfsPlusEditor extends Component<Props> {
100100 _getGtfsEntity = ( type : string , id : string ) = > this . props . gtfsEntityLookup [ `${ type } _${ id } ` ]
101101
102102 _newRowsDisplayed = ( rows : Array < any > ) => {
103- const { activeTableId, feedVersion , loadGtfsEntities, validation} = this . props
104- if ( feedVersion ) loadGtfsEntities ( activeTableId , rows , feedVersion , validation )
103+ const { activeTableId, feedVersionSummary , loadGtfsEntities, validation} = this . props
104+ if ( feedVersionSummary ) loadGtfsEntities ( activeTableId , rows , feedVersionSummary , validation )
105105 }
106106
107107 _selectTable = ( activeTableId : string ) => this . props . setActiveTable ( { activeTableId} )
@@ -127,7 +127,7 @@ export default class GtfsPlusEditor extends Component<Props> {
127127 const {
128128 activeTableId ,
129129 feedSource,
130- feedVersion ,
130+ feedVersionSummary ,
131131 project,
132132 tableData,
133133 user,
@@ -157,7 +157,7 @@ export default class GtfsPlusEditor extends Component<Props> {
157157 < li > < Link to = '/' > Explore</ Link > </ li >
158158 < li > < Link to = '/project' > Projects</ Link > </ li >
159159 < li > < Link to = { `/project/${ project . id } ` } > { project . name } </ Link > </ li >
160- < li > < Link to = { `/feed/${ feedSource . id } /version/${ feedVersion . version } /gtfsplus` } > { feedSource . name } </ Link > </ li >
160+ < li > < Link to = { `/feed/${ feedSource . id } /version/${ feedVersionSummary . version } /gtfsplus` } > { feedSource . name } </ Link > </ li >
161161 < li className = 'active' > Edit GTFS+</ li >
162162 </ ul >
163163 </ Col >
0 commit comments