[O] Optimize mark as unread
This commit is contained in:
@@ -32,8 +32,8 @@ export default class OverallCourse extends Vue
|
|||||||
// Check success
|
// Check success
|
||||||
if (response.success)
|
if (response.success)
|
||||||
{
|
{
|
||||||
this.unreadAssignments = this.unreadAssignments.filter(a => a != assignment);
|
// @ts-ignore
|
||||||
this.unread = this.unreadAssignments.length;
|
this.unreadAssignments.find(a => a.id == response.data.assignment_id).unread = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user