Load tasks from server

This commit is contained in:
Raimund Schlüßler 2018-11-03 20:02:51 +01:00
parent a17d642060
commit 2c97f0aadf
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -79,11 +79,11 @@ export default {
*/
fetchTasks() {
// wait for all calendars to have fetch their tasks
// Promise.all(this.calendars.map(calendar => this.$store.dispatch('getTasksFromCalendar', { calendar })))
// .then(results => {
// this.loading = false
// console.log(results)
// })
Promise.all(this.calendars.map(calendar => this.$store.dispatch('getTasksFromCalendar', { calendar })))
.then(results => {
this.loading = false
console.log(results)
})
}
}
}