summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-21 12:29:49 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-21 12:30:29 +0100
commit798ecf76458b3204cca3841c6127770587cf2808 (patch)
tree5713aa9c1374ae73aba4e8522832286070ab476e /settings/src
parente5cc147d69c53504c0a6ede4e50be60eb697deb7 (diff)
downloadnextcloud-server-798ecf76458b3204cca3841c6127770587cf2808.tar.gz
nextcloud-server-798ecf76458b3204cca3841c6127770587cf2808.zip
Focus new group input on show
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/views/Users.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue
index a1116749117..5963881b9b9 100644
--- a/settings/src/views/Users.vue
+++ b/settings/src/views/Users.vue
@@ -425,6 +425,10 @@ export default {
} else {
Vue.set(addGroup, 'action', function() {
self.showAddGroupEntry = true
+ // focus input
+ Vue.nextTick(() => {
+ window.addgroup.querySelector('form > input[type="text"]').focus()
+ })
})
}
groups.unshift(addGroup);