Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/components/User/Info.vue
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | export default { | ||||
delete this.user.password_confirm | delete this.user.password_confirm | ||||
if (response.data.status == 'success') { | if (response.data.status == 'success') { | ||||
this.$toastr('success', response.data.message) | this.$toastr('success', response.data.message) | ||||
} | } | ||||
// on new user redirect to users list | // on new user redirect to users list | ||||
if (this.user_id === 'new') { | if (this.user_id === 'new') { | ||||
this.$route.push({ name: 'users' }) | this.$router.push({ name: 'users' }) | ||||
} | } | ||||
}) | }) | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// List widget | // List widget | ||||
// TODO: move it to a separate component file when needed | // TODO: move it to a separate component file when needed | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |