Skip to content

Commit

Permalink
fix(editor): update pattern direction values to reflect A/B values in…
Browse files Browse the repository at this point in the history
… Java enum

This corresponds to a change on datatools-server due to an issue with serializing these values to
the "standard" 0/1 values in GTFS.

refs catalogueglobal/datatools-server#41
  • Loading branch information
landonreed committed Sep 20, 2017
1 parent d0cb067 commit fa0d543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/editor/components/pattern/EditSchedulePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Button, FormGroup, ControlLabel, ButtonGroup, DropdownButton, MenuItem}

import OptionButton from '../../../common/components/OptionButton'

const DIRECTIONS = [0, 1]
const DIRECTIONS = ['A', 'B']

export default class EditSchedulePanel extends Component {
static propTypes = {
Expand Down Expand Up @@ -74,9 +74,9 @@ export default class EditSchedulePanel extends Component {
bsSize='small'
style={{width: '85px'}}
name={dir}
title={dir === 0 ? 'Outbound (0)' : 'Inbound (1)'}
title={dir === 'A' ? 'Outbound (0)' : 'Inbound (1)'}
onClick={this._onChangeDirection}>
<Icon type={dir === 0 ? 'sign-out' : 'sign-in'} />
<Icon type={dir === 'A' ? 'sign-out' : 'sign-in'} />
</OptionButton>
))}
</ButtonGroup>
Expand Down

0 comments on commit fa0d543

Please sign in to comment.