Display Protospace as meeting instructor

This commit is contained in:
2020-07-18 22:15:53 +00:00
parent 04e0bbc7a2
commit edb2128cbf
3 changed files with 13 additions and 5 deletions
+8
View File
@@ -8,6 +8,14 @@ export const staticUrl = window.location.protocol + '//static.' + window.locatio
export const isAdmin = (user) => user.is_staff || user.member.is_director || user.member.is_staff;
export const isInstructor = (user) => isAdmin(user) || user.member.is_instructor;
export const getInstructor = (x) => {
if (x.course === 413 || x.course === 317 || x.course === 273) {
return 'Protospace';
} else {
return x.instructor_name;
}
};
export const statusColor = {
'Prepaid': 'green',
'Current': 'green',