[+] Encapsulate method to get assignment types

This commit is contained in:
Hykilpikonna
2019-11-05 17:28:28 -05:00
parent baae0d088c
commit 536e98642d
+8
View File
@@ -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>