Ticket #158 (closed enhancement: done)
Replace hard-coded color assignments for incidents
| Reported by: | jdalbey | Owned by: | jdalbey |
|---|---|---|---|
| Priority: | Low | Milestone: | Sep 2019 Training |
| Component: | Electronic Instructor Notebook | Version: | |
| Severity: | Minor | Keywords: | |
| Cc: |
Description
Currently the colors used for background in EI Notebook are hard coded to a specific incident. The drawback is that if a script contains an incident number not present in the hardcoded list then it isn't assigned a color.
A better strategy would be to create a list or palette of colors and assign them to incidents dynamically as they are created. I.E., first incident gets first color in list, second incident gets second color in list, etc.
Change History
comment:1 Changed 7 years ago by jdalbey
- Component changed from CPTMS to Electronic Instructor Notebook
comment:2 Changed 7 years ago by jdalbey
John did some explorations towards a solution and knows which modules need updating. Talk to him for details.
comment:3 Changed 7 years ago by jdalbey
The modules that probably need to be updated are: Event.js, Incident.js, Incidents.js, and LoadEvents.js.
comment:4 Changed 7 years ago by jdalbey
- Owner changed from jdalbey to tanmay
- Status changed from new to assigned
