From fa0d5431898940f8ebe7c71ac0eec039acb660a0 Mon Sep 17 00:00:00 2001 From: Landon Reed Date: Wed, 20 Sep 2017 15:48:45 -0400 Subject: [PATCH] fix(editor): update pattern direction values to reflect A/B values in 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 --- lib/editor/components/pattern/EditSchedulePanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/editor/components/pattern/EditSchedulePanel.js b/lib/editor/components/pattern/EditSchedulePanel.js index 9921a8503..1f70f403e 100644 --- a/lib/editor/components/pattern/EditSchedulePanel.js +++ b/lib/editor/components/pattern/EditSchedulePanel.js @@ -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 = { @@ -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}> - + ))}