[+] Encapsulate getGraded() in assignment

This commit is contained in:
Hykilpikonna
2019-12-07 11:53:05 -05:00
parent 24ab0f66f3
commit fd01dda8b3
+8
View File
@@ -51,6 +51,14 @@ export class Assignment
this.gradingPeriod = +json.grading_period.replace('Quarter ', '') - 1;
}
/**
* Graded or not
*/
get graded()
{
return this.complete == 'Complete';
}
}
export interface AssignmentType