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