Load tasks from server
This commit is contained in:
parent
a17d642060
commit
2c97f0aadf
1 changed files with 5 additions and 5 deletions
10
src/app.vue
10
src/app.vue
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue