@@ -66,6 +66,21 @@ export class Assignment
|
|||||||
return this.include && (this.complete == 'Complete' || this.complete == 'Late' || this.complete == 'NREQ');
|
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
|
* Add callback
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user