[+] Create method to get completion status

#3
This commit is contained in:
Hykilpikonna
2020-01-27 16:36:43 -05:00
parent 1698f1737d
commit 304ba63771
+15
View File
@@ -66,6 +66,21 @@ export class Assignment
return this.include && (this.complete == 'Complete' || this.complete == 'Late' || this.complete == 'NREQ');
}
/**
* What is the problem with this assignment
*
* @return string Empty string if complete, otherwise return problem.
*/
get problem()
{
switch (this.complete)
{
case 'Complete': return '';
case 'Late': return 'Late';
case 'NREQ': return 'Dropped';
}
}
/**
* Add callback
*