[+] Auto detect update notification on load
This commit is contained in:
@@ -213,6 +213,15 @@ export default class App extends Vue
|
|||||||
|
|
||||||
// Remove loading
|
// Remove loading
|
||||||
this.logLoading('');
|
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()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user