Removed pseudo-errorhandlers
All checks were successful
the build was successful

This commit is contained in:
kolaente 2019-02-26 19:10:45 +01:00
parent a62a85a2f4
commit 62438313c6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -161,7 +161,7 @@
this.$set(this, 'users', response)
})
.catch(e => {
this.handleError(e)
message.error(e, this)
})
},
deleteUser() {
@ -172,11 +172,11 @@
this.userStuffService.delete(this.userStuff)
.then(() => {
this.showUserDeleteModal = false;
this.handleSuccess({message: 'The user was successfully deleted from the ' + this.typeString + '.'})
message.success({message: 'The user was successfully deleted from the ' + this.typeString + '.'}, this)
this.loadUsers()
})
.catch(e => {
this.handleError(e)
message.error(e, this)
})
},
addUser(admin = false) {
@ -192,10 +192,10 @@
this.userStuffService.create(this.userStuff)
.then(() => {
this.loadUsers()
this.handleSuccess({message: 'The user was successfully added.'})
message.success({message: 'The user was successfully added.'}, this)
})
.catch(e => {
this.handleError(e)
message.error(e, this)
})
},
toggleUserType(userid, current) {
@ -208,10 +208,10 @@
this.userStuffService.update(this.userStuff)
.then(() => {
this.loadUsers()
this.handleSuccess({message: 'The user right was successfully updated.'})
message.success({message: 'The user right was successfully updated.'}, this)
})
.catch(e => {
this.handleError(e)
message.error(e, this)
})
},
findUsers(query) {
@ -234,12 +234,6 @@
limitText (count) {
return `and ${count} others`
},
handleError(e) {
message.error(e, this)
},
handleSuccess(e) {
message.success(e, this)
}
},
}
</script>