aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2017-12-28 15:16:10 +0100
committerZog2017-12-28 15:16:10 +0100
commit4857aad7f4cbbdef7ab1d0596fe4712930476ef9 (patch)
tree61df71b7d0d1339bda0ef9585c3eed1c2829ea5d
parent19fe21ab7dfde92a3ae7076d1b28e853c6858f38 (diff)
downloadchouette-core-4857aad7f4cbbdef7ab1d0596fe4712930476ef9.tar.bz2
Show calendar colors in Timetables modal in VehicleJourneys editorfix-routes-editor
-rw-r--r--app/javascript/vehicle_journeys/components/tools/TimetablesEditVehicleJourney.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/javascript/vehicle_journeys/components/tools/TimetablesEditVehicleJourney.js b/app/javascript/vehicle_journeys/components/tools/TimetablesEditVehicleJourney.js
index 56f80ebb5..fdaa5aeed 100644
--- a/app/javascript/vehicle_journeys/components/tools/TimetablesEditVehicleJourney.js
+++ b/app/javascript/vehicle_journeys/components/tools/TimetablesEditVehicleJourney.js
@@ -66,7 +66,12 @@ export default class TimetablesEditVehicleJourney extends Component {
{this.props.modal.modalProps.timetables.map((tt, i) =>
<div className='nested-fields' key={i}>
<div className='wrapper'>
- <div> <a href={this.timeTableURL(tt)} target="_blank">{tt.comment}</a> </div>
+ <div>
+ <a href={this.timeTableURL(tt)} target="_blank">
+ <span className="fa fa-circle mr-xs" style={{color: tt.color || 'black'}}></span>
+ {tt.comment}
+ </a>
+ </div>
{
this.props.editMode &&
<div>