[O] Create progress getter

This commit is contained in:
Hykilpikonna
2019-12-21 20:19:50 -05:00
parent 02d5e209d9
commit 311055a4c9
+8 -1
View File
@@ -79,7 +79,14 @@
unread: Assignment[];
clearUnreadPrompt = false;
dontAskAgain = false;
progress = -1;
/**
* Mark as read progress
*/
progress()
{
return this.unread.filter(a => !a.unread).length / this.unread.length;
}
/**
* On page load - check if the user has too many notifications