[+] Auto detect update notification on load

This commit is contained in:
Hykilpikonna
2020-04-29 11:34:56 -04:00
parent 922e3911d8
commit c587cf7953
+9
View File
@@ -213,6 +213,15 @@ export default class App extends Vue
// Remove loading
this.logLoading('');
// Check if rating notification should be displayed
if (this.courses.filter(c => c.rated).length == 0 && this.showRating &&
!this.$cookies.isKey('rating-notified'))
{
// Show notification
this.$cookies.set('rating-notified', true);
this.showUpdates()
}
})
}