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