0
0
Fork 0

Merge pull request 'Se agrega un desplegable en el detalle de las tarjetas' (#3) from features/ms_19_desplegable_detalle into dev

Reviewed-on: hyervoni/salix-front-mindshore#3
This commit is contained in:
Carlos Fonseca 2023-11-21 12:16:45 +00:00
commit e93e1d456e
1 changed files with 34 additions and 20 deletions

View File

@ -52,6 +52,16 @@ watch($props, async () => {
entity.value = null;
await fetch();
});
const options = [
'Transferir factura a ...',
'Ver factura ...',
'Enviar factura ...',
'Eliminar factura',
'Asentar factura',
'Regenerar PDF factura',
'Abono ...',
];
</script>
<template>
@ -60,13 +70,13 @@ watch($props, async () => {
<div class="header bg-primary q-pa-sm">
<RouterLink :to="{ name: `${module}List` }">
<QBtn
round
flat
dense
size="md"
icon="view_list"
color="white"
class="link"
color="white"
dense
flat
icon="view_list"
round
size="md"
>
<QTooltip>
{{ t('components.cardDescriptor.mainList') }}
@ -75,28 +85,32 @@ watch($props, async () => {
</RouterLink>
<RouterLink :to="{ name: `${module}Summary`, params: { id: entity.id } }">
<QBtn
round
flat
dense
size="md"
icon="launch"
color="white"
class="link"
color="white"
dense
flat
icon="launch"
round
size="md"
>
<QTooltip>
{{ t('components.cardDescriptor.summary') }}
</QTooltip>
<QMenu auto-close>
<QList dense v-for="option in options" :key="option">
<QItem v-ripple clickable>
{{ option }}
</QItem>
</QList>
</QMenu>
</QBtn>
</RouterLink>
<QBtn
v-if="slots.menu"
size="md"
icon="more_vert"
color="white"
round
flat
dense
flat
icon="more_vert"
round
size="md"
v-if="slots.menu"
>
<QTooltip>
{{ t('components.cardDescriptor.moreOptions') }}