Error messages in boxes instead of console.log
parent
bb116fe5b0
commit
66093fe117
|
@ -115,7 +115,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
buttons.done('save')
|
buttons.done('save')
|
||||||
console.log(error)
|
this.$store.commit('showError', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,9 @@ export default {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$store.commit('setReload', true)
|
this.$store.commit('setReload', true)
|
||||||
})
|
})
|
||||||
.catch(error => console.log(error))
|
.catch(error => {
|
||||||
|
this.$store.commit('showError', error)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
click: function (event) {
|
click: function (event) {
|
||||||
if (this.selectedCount !== 0) event.preventDefault()
|
if (this.selectedCount !== 0) event.preventDefault()
|
||||||
|
|
|
@ -37,8 +37,7 @@ export default {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$router.push({ path: redirect })
|
this.$router.push({ path: redirect })
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(() => {
|
||||||
console.log(e)
|
|
||||||
this.wrong = true
|
this.wrong = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,7 +124,6 @@ export default {
|
||||||
|
|
||||||
this.rules = this.rules.trim()
|
this.rules = this.rules.trim()
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error)
|
|
||||||
this.$router.push({ path: '/users/new' })
|
this.$router.push({ path: '/users/new' })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -34,9 +34,8 @@ export default {
|
||||||
created () {
|
created () {
|
||||||
api.getUsers().then(users => {
|
api.getUsers().then(users => {
|
||||||
this.users = users
|
this.users = users
|
||||||
console.log(users)
|
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error)
|
this.$store.commit('showError', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue