Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/List.vue
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | export default { | ||||
this.$toast.success(response.data.message) | this.$toast.success(response.data.message) | ||||
$('#user' + id).remove() | $('#user' + id).remove() | ||||
} | } | ||||
}) | }) | ||||
return | return | ||||
} | } | ||||
// Deleting self, redirect to /profile/delete page | // Deleting self, redirect to /profile/delete page | ||||
if (id == this.$store.state.authInfo.id) { | if (id == this.$store.state.authInfo.id) { | ||||
this.$router.push({ name: 'profile-delete' }) | this.$router.push({ name: 'profile-delete' }) | ||||
return | return | ||||
} | } | ||||
// Display the warning | // Display the warning | ||||
if (this.current_user = this.getUser(id)) { | if (this.current_user = this.getUser(id)) { | ||||
Show All 16 Lines |