[+] Implement mark all as read

This commit is contained in:
Hykilpikonna
2019-12-21 20:27:23 -05:00
parent 76ec5d4476
commit 5ad2be88c1
+9
View File
@@ -127,6 +127,15 @@
// Don't ask again
this.$cookies.set('va.ignore-unread', true);
}
// Clear unread
this.started = true;
this.unread.forEach((a, i) =>
{
// Delay: 100ms per assignment
// I don't want my server to explode lol
setTimeout(() => a.markAsRead().then(() => this.$forceUpdate()), 100 * i);
});
}
}
</script>