mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
feat: automatically focus username field on login page
This commit is contained in:
parent
e5fa96b666
commit
596c73288f
@ -9,6 +9,7 @@
|
||||
class="input input--block"
|
||||
type="text"
|
||||
autocapitalize="off"
|
||||
ref="username"
|
||||
v-model="username"
|
||||
:placeholder="$t('login.username')"
|
||||
/>
|
||||
@ -70,6 +71,8 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.focusUsername();
|
||||
|
||||
if (!recaptcha) return;
|
||||
|
||||
window.grecaptcha.ready(function () {
|
||||
@ -79,6 +82,9 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
focusUsername() {
|
||||
this.$refs.username.focus();
|
||||
},
|
||||
toggleMode() {
|
||||
this.createMode = !this.createMode;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user