Compare commits

...

2 Commits

Author SHA1 Message Date
09a988ceaa card actions 2025-02-10 16:25:24 +01:00
6ab7838a3d send with enter changename 2025-02-10 13:12:01 +01:00

View File

@@ -20,15 +20,18 @@
Compartido con: Compartido con:
<span v-if="!lista.profiles || lista.profiles.length === 0">Nadie</span> <span v-if="!lista.profiles || lista.profiles.length === 0">Nadie</span>
<span v-for="(profile, index) in lista.profiles" :key="index"> <span v-for="(profile, index) in lista.profiles" :key="index">
{{ profile.email }} <br>- {{ profile.email }} <q-icon name="delete" @click="console.log(profile.email)"
class="cursor-pointer" />
</span> </span>
</q-card-section> </q-card-section>
<q-separator dark /> <q-separator dark />
<q-card-actions> <q-card-actions>
<q-btn flat>Action 1</q-btn> <q-btn flat>Editar</q-btn>
<q-btn flat>Action 2</q-btn> <q-btn flat>Compartir</q-btn>
<q-space></q-space>
<q-btn class="bg-negative q-mr-md" flat>Borrar</q-btn>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</div> </div>
@@ -40,14 +43,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 +130,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(() => {