mirror of
https://github.com/directus/directus.git
synced 2026-01-27 19:07:55 -05:00
Add autofocus to dialog and modal
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user