[+] Create method to get completion status color

#3
This commit is contained in:
Hykilpikonna
2020-01-27 16:37:10 -05:00
parent 304ba63771
commit dfeb5d0272
+12
View File
@@ -81,6 +81,18 @@ export class Assignment
}
}
/**
* Get the text color of the problem
*/
get problemColor()
{
switch (this.complete)
{
case 'Late': return '#ff0036';
case 'NREQ': return '#41b141';
}
}
/**
* Add callback
*