send with enter changename
This commit is contained in:
@@ -40,14 +40,15 @@
|
||||
</template>
|
||||
</q-infinite-scroll>
|
||||
</div>
|
||||
<q-dialog v-model="dialogChangeNameList" persistent>
|
||||
<q-dialog v-model="dialogChangeNameList" persistent enterConfirm>
|
||||
<q-card style="min-width: 350px">
|
||||
<q-card-section>
|
||||
<div class="text-h6">Nuevo nombre</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section class="q-pt-none">
|
||||
<q-input dense v-model="newNameList" autofocus @keyup.enter="dialogChangeNameList = false" />
|
||||
<q-input dense v-model="newNameList" autofocus
|
||||
@keyup.enter="changeNameList(lista_id); dialogChangeNameList = false" />
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions align="right" class="text-primary">
|
||||
@@ -126,6 +127,7 @@ const changeNameList = async (id) => {
|
||||
const openDialogChangeNameList = (id) => {
|
||||
dialogChangeNameList.value = true
|
||||
lista_id.value = id
|
||||
newNameList.value = ''
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user