Show substitutions on the timetable

This commit is contained in:
2022-04-30 20:23:02 +02:00
parent 6e118221b9
commit 459d1ce0ec
2 changed files with 69 additions and 9 deletions

View File

@ -24,3 +24,13 @@ export function getSubstitutionText(substitution) {
}
return text;
}
export function getSubstitutionColor(substitution) {
if (!substitution) return;
switch (substitution.type) {
case "change":
return "background-color: #14587e;";
case "cancellation":
return "background-color: #7d2b2d;";
}
}