fix(webui): add autofocus on some dialogs

This commit is contained in:
Gauthier Roebroeck 2021-05-20 17:48:42 +08:00
parent 7200046ea5
commit 339570e17c
5 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,7 @@
<v-col>
<v-text-field
v-model="newCollection"
autofocus
:label="$t('dialog.add_to_collection.field_search_create')"
@keydown.enter="create"
:error-messages="duplicate"

View file

@ -38,6 +38,7 @@
<v-row>
<v-col>
<v-text-field v-model="form.name"
autofocus
:label="$t('dialog.edit_library.field_name')"
:error-messages="getErrors('name')"
@input="$v.form.name.$touch()"

View file

@ -12,6 +12,7 @@
<v-row>
<v-col>
<v-text-field :label="$t('dialog.password_change.field_new_password')"
autofocus
v-model="form.newPassword"
autocomplete="off"
:type="showPassword1 ? 'text' : 'password'"

View file

@ -19,6 +19,7 @@
<v-col>
<v-text-field
v-model="newReadList"
autofocus
:label="$t('dialog.add_to_readlist.field_search_create')"
@keydown.enter="create"
:error-messages="duplicate"

View file

@ -26,6 +26,7 @@
<v-row>
<v-col>
<v-text-field v-model="form.email"
autofocus
:label="$t('dialog.add_user.field_email')"
:error-messages="getErrors('email')"
@blur="$v.form.email.$touch()"