Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/List.vue
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | export default { | ||||
let dialog = $('#delete-warning').modal('hide') | let dialog = $('#delete-warning').modal('hide') | ||||
// Delete the user from the confirm dialog | // Delete the user from the confirm dialog | ||||
if (!id && this.current_user) { | if (!id && this.current_user) { | ||||
id = this.current_user.id | id = this.current_user.id | ||||
axios.delete('/api/v4/users/' + id) | axios.delete('/api/v4/users/' + id) | ||||
.then(response => { | .then(response => { | ||||
if (response.data.status == 'success') { | if (response.data.status == 'success') { | ||||
this.$toastr('success', response.data.message) | this.$toast.success(response.data.message) | ||||
$('#user' + id).remove() | $('#user' + id).remove() | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
Show All 24 Lines |