Small corrections

This commit is contained in:
William Buezas 2024-01-04 09:58:37 -03:00
parent de8996d596
commit cfac9acbe8
2 changed files with 13 additions and 6 deletions

View File

@ -174,6 +174,7 @@ onMounted(async () => {
}}</QBtn> }}</QBtn>
</QCard> </QCard>
</QPopupProxy> </QPopupProxy>
<QTooltip>{{ t('Visible columns') }}</QTooltip>
</QBtn> </QBtn>
</template> </template>
@ -189,3 +190,9 @@ onMounted(async () => {
grid-template-columns: repeat(3, 200px); grid-template-columns: repeat(3, 200px);
} }
</style> </style>
<i18n>
es:
Check the columns you want to see: Marca las columnas que quieres ver
Visible columns: Columnas visibles
</i18n>

View File

@ -100,22 +100,22 @@ const redirectToDepartmentSummary = (id) => {
v-model:expanded="expanded" v-model:expanded="expanded"
@update:expanded="onNodeExpanded($event)" @update:expanded="onNodeExpanded($event)"
> >
<template #default-header="prop"> <template #default-header="{ node }">
<div <div
class="row justify-between full-width q-pr-md cursor-pointer" class="row justify-between full-width q-pr-md cursor-pointer"
@click.stop="redirectToDepartmentSummary(prop.node.id)" @click.stop="redirectToDepartmentSummary(node.id)"
> >
<span class="text-uppercase"> <span class="text-uppercase">
{{ prop.node.name }} {{ node.name }}
</span> </span>
<div class="row justify-between" style="max-width: max-content"> <div class="row justify-between" style="max-width: max-content">
<QIcon <QIcon
v-if="prop.node.id" v-if="node.id"
name="delete" name="delete"
color="primary" color="primary"
size="sm" size="sm"
class="q-pr-xs cursor-pointer" class="q-pr-xs cursor-pointer"
@click.stop="removeNode(prop.node)" @click.stop="removeNode(node)"
> >
<QTooltip> <QTooltip>
{{ t('Remove') }} {{ t('Remove') }}
@ -126,7 +126,7 @@ const redirectToDepartmentSummary = (id) => {
color="primary" color="primary"
size="sm" size="sm"
class="cursor-pointer" class="cursor-pointer"
@click.stop="showCreateNodeForm(prop.node.id)" @click.stop="showCreateNodeForm(node.id)"
> >
<QTooltip> <QTooltip>
{{ t('Create') }} {{ t('Create') }}