[+] Set cookies when don't ask again is checked
This commit is contained in:
@@ -79,6 +79,7 @@
|
|||||||
unread: Assignment[];
|
unread: Assignment[];
|
||||||
clearUnreadPrompt = false;
|
clearUnreadPrompt = false;
|
||||||
dontAskAgain = false;
|
dontAskAgain = false;
|
||||||
|
progress = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* On page load - check if the user has too many notifications
|
* On page load - check if the user has too many notifications
|
||||||
@@ -98,6 +99,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear unread
|
||||||
|
*
|
||||||
|
* @param confirmed
|
||||||
|
*/
|
||||||
|
clearUnread(confirmed: boolean)
|
||||||
|
{
|
||||||
|
// Hide prompt
|
||||||
|
this.clearUnreadPrompt = false;
|
||||||
|
|
||||||
|
// Not confirmed, do nothing
|
||||||
|
if (!confirmed)
|
||||||
|
{
|
||||||
|
if (!this.dontAskAgain) return;
|
||||||
|
|
||||||
|
// Don't ask again
|
||||||
|
this.$cookies.set('IgnoreUnread', true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user