Fix group form reset after new user

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-02-21 12:08:47 +01:00
parent 4a5eaf3f6b
commit 41f9274540
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,7 @@ export default {
* In case the user directly loaded the user list within a group * In case the user directly loaded the user list within a group
* the watch won't be triggered. We need to initialize it. * the watch won't be triggered. We need to initialize it.
*/ */
this.setNewUserDefaultGroup(this.$route.params.selectedGroup); this.setNewUserDefaultGroup(this.selectedGroup);
/** /**
* Register search * Register search
@ -339,6 +339,8 @@ export default {
resetForm() { resetForm() {
// revert form to original state // revert form to original state
Object.assign(this.newUser, this.$options.data.call(this).newUser); Object.assign(this.newUser, this.$options.data.call(this).newUser);
// reset group
this.setNewUserDefaultGroup(this.selectedGroup);
this.loading.all = false; this.loading.all = false;
}, },
createUser() { createUser() {