✨ Show substitutions on the timetable
This commit is contained in:
10
src/util.js
10
src/util.js
@ -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;";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user