0
0
Fork 0

Add tooltip to VnSelegDialog Action icon and small corrections

This commit is contained in:
William Buezas 2024-02-09 08:51:39 -03:00
parent c67f4cf858
commit 1b31657338
4 changed files with 11 additions and 2 deletions

View File

@ -110,4 +110,5 @@ es:
Model: Modelo
Warehouse: Almacén
Temperature: Temperatura
New thermograph: Nuevo termógrafo
</i18n>

View File

@ -24,6 +24,10 @@ const $props = defineProps({
type: String,
default: 'add',
},
tooltip: {
type: String,
default: '',
},
});
const role = useRole();
@ -55,7 +59,9 @@ const toggleForm = () => {
:name="actionIcon"
:size="actionIcon === 'add' ? 'xs' : 'sm'"
:class="['default-icon', { '--add-icon': actionIcon === 'add' }]"
/>
>
<QTooltip v-if="tooltip">{{ tooltip }}</QTooltip>
</QIcon>
<QDialog v-model="showForm" transition-show="scale" transition-hide="scale">
<slot name="form" />
</QDialog>

View File

@ -198,7 +198,7 @@ const removeThermograph = async (id) => {
color="primary"
@click="redirectToThermographForm('create')"
/>
<QTooltip>
<QTooltip class="text-no-wrap">
{{ t('Add thermograph') }}
</QTooltip>
</QPageSticky>

View File

@ -244,6 +244,7 @@ const onThermographCreated = async (data) => {
option-value="thermographFk"
option-label="thermographFk"
:disable="viewAction === 'edit'"
:tooltip="t('New thermograph')"
>
<template #form>
<CreateThermographForm
@ -343,4 +344,5 @@ const onThermographCreated = async (data) => {
es:
Select files: Selecciona ficheros
Thermograph created: Termógrafo creado
New thermograph: Nuevo termógrafo
</i18n>