diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-10 17:05:05 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-16 09:50:24 +0200 |
commit | 170746dadae678d02657515206ac4c96976c8173 (patch) | |
tree | 4637212d217562e1136a7d0204fd514656a2c627 /settings/src/views | |
parent | b2389d0f017ce0f5afbe34af15b878b30880432c (diff) | |
download | nextcloud-server-170746dadae678d02657515206ac4c96976c8173.tar.gz nextcloud-server-170746dadae678d02657515206ac4c96976c8173.zip |
Design fixes
- Gap between columns
- Click on icon more closes the menu
- Fixed select height
- Focus input on new user click
- Cursor fix on select
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/views')
-rw-r--r-- | settings/src/views/Users.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue index 343bb7568d0..0f74b76e38c 100644 --- a/settings/src/views/Users.vue +++ b/settings/src/views/Users.vue @@ -81,6 +81,14 @@ export default { } }, methods: { + toggleNewUserMenu() { + this.showConfig.showNewUserForm = !this.showConfig.showNewUserForm; + if (this.showConfig.showNewUserForm) { + Vue.nextTick(() => { + window.newusername.focus(); + }); + } + }, getLocalstorage(key) { // force initialization let localConfig = this.$localStorage.get(key); @@ -287,7 +295,7 @@ export default { id:'new-user-button', text: t('settings','New user'), icon: 'icon-add', - action: () => this.showConfig.showNewUserForm=!this.showConfig.showNewUserForm + action: this.toggleNewUserMenu }, items: groups } |