From c587cf79530de0a87ce30cd2b4461e560dac3ecc Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 29 Apr 2020 11:34:56 -0400 Subject: [PATCH] [+] Auto detect update notification on load --- src/components/app/app.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index c3de487..7464e78 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -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() + } }) }