[+] Encapsulate method to get assignment types
This commit is contained in:
@@ -53,6 +53,14 @@
|
||||
}
|
||||
else return this.unread;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all the types of the assignments.
|
||||
*/
|
||||
getAssignmentTypes(): string[]
|
||||
{
|
||||
return [...this.course.assignments.map(a => a.type)];
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user