Fix user creation issue (#291)
This commit is contained in:
parent
7e68db9858
commit
09493392db
|
@ -110,6 +110,7 @@ export default {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
try {
|
try {
|
||||||
if (this.isNew) {
|
if (this.isNew) {
|
||||||
|
await usersApi.create(this.userPayload);
|
||||||
this.$router.push({ path: "/settings", hash: "#users-main" });
|
this.$router.push({ path: "/settings", hash: "#users-main" });
|
||||||
notify.showSuccess(this.$t("settings.userCreated"));
|
notify.showSuccess(this.$t("settings.userCreated"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue