Commit bc118b45 authored by Jiawen Lyu's avatar Jiawen Lyu

show name

parent f9507bf5
......@@ -10,10 +10,13 @@ const toColorName = index => (
0: "orange",
1: "green",
2: "red",
3: "blue",
4: "grey"
}[index]
)
const changeColorForEachStudent = (events, currentStudents) => events.map(event => {
event.color = toColorName(currentStudents.indexOf(event.login))
event.text = event.text + "\n" + event.login
scheduler.updateEvent(event.id)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment