Fixes wrong update of role object after editing recently created one.
This commit is contained in:
parent
f42536a5eb
commit
8c2b96e03c
|
@ -358,6 +358,7 @@
|
||||||
this.createRole(this.role)
|
this.createRole(this.role)
|
||||||
.then((createdRole) => {
|
.then((createdRole) => {
|
||||||
this.roleSlug = createdRole.slug;
|
this.roleSlug = createdRole.slug;
|
||||||
|
this.role = createdRole;
|
||||||
this.$router.push('/roles/' + this.roleSlug);
|
this.$router.push('/roles/' + this.roleSlug);
|
||||||
this.isUpdatingRole = false;
|
this.isUpdatingRole = false;
|
||||||
this.showNotice = true;
|
this.showNotice = true;
|
||||||
|
|
Loading…
Reference in New Issue