summaryrefslogtreecommitdiffstats
path: root/settings/src/components/userList/userRow.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-11 09:57:13 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-16 09:50:24 +0200
commit549940ddb9643a57a0900aa002b49276e5d20d9b (patch)
tree956eddc3e1f521bc25aa8c2fd6ff8e2e81a6793d /settings/src/components/userList/userRow.vue
parenta62c796f0709dacc332b7d9328e3f6ab151991f3 (diff)
downloadnextcloud-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.vue10
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);
+ }
+ });
},
/**