changed cancel() to be called before handle error
All checks were successful
the build was successful

This commit is contained in:
kolaente 2018-11-28 10:11:26 +01:00
parent b35c0ff314
commit fc6aee8373
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
8 changed files with 34 additions and 34 deletions

View File

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

View File

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

View File

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

View File

@ -108,8 +108,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e) cancel()
cancel() this.handleError(e)
}) })
}, },
submit() { submit() {
@ -128,8 +128,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e) cancel()
cancel() this.handleError(e)
}) })
}, },
deleteNamespace() { deleteNamespace() {
@ -141,8 +141,8 @@
router.push({name: 'home'}) router.push({name: 'home'})
}) })
.catch(e => { .catch(e => {
this.handleError(e) cancel()
cancel() this.handleError(e)
}) })
}, },
handleError(e) { handleError(e) {

View File

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

View File

@ -128,8 +128,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
deleteTeam() { deleteTeam() {
@ -142,8 +142,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
addTeam(admin) { addTeam(admin) {
@ -163,8 +163,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
toggleTeamType(teamid, current) { toggleTeamType(teamid, current) {
@ -181,8 +181,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
handleError(e) { handleError(e) {

View File

@ -150,8 +150,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
deleteUser() { deleteUser() {
@ -164,8 +164,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
addUser(admin) { addUser(admin) {
@ -188,8 +188,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
toggleUserType(userid, current) { toggleUserType(userid, current) {
@ -206,8 +206,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
findUsers(query) { findUsers(query) {
@ -234,8 +234,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
clearAll () { clearAll () {

View File

@ -203,8 +203,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e) cancel()
cancel() this.handleError(e)
}) })
}, },
deleteTeam() { deleteTeam() {
@ -246,8 +246,8 @@
cancel() cancel()
}) })
.catch(e => { .catch(e => {
this.handleError(e)
cancel() cancel()
this.handleError(e)
}) })
}, },
toggleUserType(userid, current) { toggleUserType(userid, current) {