diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-11 09:57:13 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-16 09:50:24 +0200 |
commit | 549940ddb9643a57a0900aa002b49276e5d20d9b (patch) | |
tree | 956eddc3e1f521bc25aa8c2fd6ff8e2e81a6793d /settings/src/components/userList/userRow.vue | |
parent | a62c796f0709dacc332b7d9328e3f6ab151991f3 (diff) | |
download | nextcloud-server-549940ddb9643a57a0900aa002b49276e5d20d9b.tar.gz nextcloud-server-549940ddb9643a57a0900aa002b49276e5d20d9b.zip |
Fixed root url detection, new tests, default new user group to current
opened group and user removal update fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/components/userList/userRow.vue')
-rw-r--r-- | settings/src/components/userList/userRow.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue index e6edc5e4f6a..78c20122bc0 100644 --- a/settings/src/components/userList/userRow.vue +++ b/settings/src/components/userList/userRow.vue @@ -9,7 +9,7 @@ <form class="displayName" :class="{'icon-loading-small': loading.displayName}" v-on:submit.prevent="updateDisplayName"> <input :id="'displayName'+user.id+rand" type="text" :disabled="loading.displayName||loading.all" - :value="user.displayname" + :value="user.displayname" ref="displayName" autocomplete="new-password" autocorrect="off" autocapitalize="off" spellcheck="false" /> <input type="submit" class="icon-confirm" value="" /> </form> @@ -353,7 +353,13 @@ export default { let userid = this.user.id; let gid = group.id; return this.$store.dispatch('removeUserGroup', {userid, gid}) - .then(() => this.loading.groups = false); + .then(() => { + this.loading.groups = false + // remove user from current list if current list is the removed group + if (this.$route.params.selectedGroup === gid) { + this.$store.commit('deleteUser', userid); + } + }); }, /** |