You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
Error messages in boxes instead of console.log
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user