diff options
| author | Zog | 2018-01-03 16:31:33 +0100 |
|---|---|---|
| committer | Zog | 2018-01-08 08:18:57 +0100 |
| commit | 913d6935727ace3ac94c08adb4e1ec378741fb19 (patch) | |
| tree | 1c8f0c63693ef4fbe7e20f7af3e6731395c855ad /app/javascript/journey_patterns/actions | |
| parent | fa63d6e3d51ccc0b3a38616747fcd91b5fdfbba5 (diff) | |
| download | chouette-core-913d6935727ace3ac94c08adb4e1ec378741fb19.tar.bz2 | |
Refs #5455 @6h; Add time and distance between stops in Journey Patterns
- Adds a `JSON` attribute in the model
- Adds the fields in the editor
Diffstat (limited to 'app/javascript/journey_patterns/actions')
| -rw-r--r-- | app/javascript/journey_patterns/actions/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/javascript/journey_patterns/actions/index.js b/app/javascript/journey_patterns/actions/index.js index 1c2eb68b2..09e2001c1 100644 --- a/app/javascript/journey_patterns/actions/index.js +++ b/app/javascript/journey_patterns/actions/index.js @@ -64,6 +64,11 @@ const actions = { type : 'DELETE_JOURNEYPATTERN', index, }), + updateJourneyPatternCosts : (index, costs) => ({ + type : 'UPDATE_JOURNEYPATTERN_COSTS', + index, + costs + }), closeModal : () => ({ type : 'CLOSE_MODAL' }), @@ -194,6 +199,7 @@ const actions = { } }) } +<<<<<<< HEAD journeyPatterns.push({ name: val.name, object_id: val.object_id, @@ -204,6 +210,14 @@ const actions = { stop_points: val.route_short_description.stop_points, deletable: false }) +======= + journeyPatterns.push( + _.assign({}, val, { + stop_points: val.route_short_description.stop_points, + deletable: false + }) + ) +>>>>>>> Refs #5455 @6h; Add time and distance between stops in Journey Patterns } } window.currentItemsLength = journeyPatterns.length |
