1
0

changed cancel() to be called before handle error

This commit is contained in:
kolaente
2018-11-28 10:11:26 +01:00
parent b35c0ff314
commit fc6aee8373
8 changed files with 34 additions and 34 deletions

View File

@ -129,8 +129,8 @@
cancel()
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
deleteList() {
@ -142,8 +142,8 @@
router.push({name: 'home'})
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
handleError(e) {

View File

@ -54,8 +54,8 @@
cancel()
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
handleError(e) {

View File

@ -216,8 +216,8 @@
cancel() // cancel the timer
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
addTask() {
@ -230,8 +230,8 @@
cancel() // cancel the timer
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
this.newTask = ''
@ -246,8 +246,8 @@
cancel() // To not set the spinner to loading when the request is made in less than 100ms, would lead to loading infinitly.
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
editTask(id) {
@ -341,8 +341,8 @@
cancel() // cancel the timers
})
.catch(e => {
this.handleError(e)
cancel()
cancel()
this.handleError(e)
})
},
updateTaskByID(id, updatedTask) {