Add autofocus to dialog and modal

This commit is contained in:
rijkvanzanten
2020-09-03 18:48:14 -04:00
parent 474711314d
commit 37b58f8bb6
2 changed files with 8 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<v-card>
<v-card-title>{{ $t('create_folder') }}</v-card-title>
<v-card-text>
<v-input :placeholder="$t('folder_name')" v-model="newFolderName" />
<v-input autofocus @keyup.enter="addFolder" :placeholder="$t('folder_name')" v-model="newFolderName" />
</v-card-text>
<v-card-actions>
<v-button secondary @click="dialogActive = false">{{ $t('cancel') }}</v-button>

View File

@@ -27,7 +27,13 @@
<v-tab-item value="collection">
<h2 class="type-title">{{ $t('creating_collection_info') }}</h2>
<div class="type-label">{{ $t('name') }}</div>
<v-input class="monospace" v-model="collectionName" db-safe :placeholder="$t('a_unique_table_name')" />
<v-input
autofocus
class="monospace"
v-model="collectionName"
db-safe
:placeholder="$t('a_unique_table_name')"
/>
<v-divider />
<div class="grid">
<div>