Add tooltip to VnSelegDialog Action icon and small corrections
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
c67f4cf858
commit
1b31657338
|
@ -110,4 +110,5 @@ es:
|
||||||
Model: Modelo
|
Model: Modelo
|
||||||
Warehouse: Almacén
|
Warehouse: Almacén
|
||||||
Temperature: Temperatura
|
Temperature: Temperatura
|
||||||
|
New thermograph: Nuevo termógrafo
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -24,6 +24,10 @@ const $props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: 'add',
|
default: 'add',
|
||||||
},
|
},
|
||||||
|
tooltip: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const role = useRole();
|
const role = useRole();
|
||||||
|
@ -55,7 +59,9 @@ const toggleForm = () => {
|
||||||
:name="actionIcon"
|
:name="actionIcon"
|
||||||
:size="actionIcon === 'add' ? 'xs' : 'sm'"
|
:size="actionIcon === 'add' ? 'xs' : 'sm'"
|
||||||
:class="['default-icon', { '--add-icon': actionIcon === 'add' }]"
|
:class="['default-icon', { '--add-icon': actionIcon === 'add' }]"
|
||||||
/>
|
>
|
||||||
|
<QTooltip v-if="tooltip">{{ tooltip }}</QTooltip>
|
||||||
|
</QIcon>
|
||||||
<QDialog v-model="showForm" transition-show="scale" transition-hide="scale">
|
<QDialog v-model="showForm" transition-show="scale" transition-hide="scale">
|
||||||
<slot name="form" />
|
<slot name="form" />
|
||||||
</QDialog>
|
</QDialog>
|
||||||
|
|
|
@ -198,7 +198,7 @@ const removeThermograph = async (id) => {
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="redirectToThermographForm('create')"
|
@click="redirectToThermographForm('create')"
|
||||||
/>
|
/>
|
||||||
<QTooltip>
|
<QTooltip class="text-no-wrap">
|
||||||
{{ t('Add thermograph') }}
|
{{ t('Add thermograph') }}
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QPageSticky>
|
</QPageSticky>
|
||||||
|
|
|
@ -244,6 +244,7 @@ const onThermographCreated = async (data) => {
|
||||||
option-value="thermographFk"
|
option-value="thermographFk"
|
||||||
option-label="thermographFk"
|
option-label="thermographFk"
|
||||||
:disable="viewAction === 'edit'"
|
:disable="viewAction === 'edit'"
|
||||||
|
:tooltip="t('New thermograph')"
|
||||||
>
|
>
|
||||||
<template #form>
|
<template #form>
|
||||||
<CreateThermographForm
|
<CreateThermographForm
|
||||||
|
@ -343,4 +344,5 @@ const onThermographCreated = async (data) => {
|
||||||
es:
|
es:
|
||||||
Select files: Selecciona ficheros
|
Select files: Selecciona ficheros
|
||||||
Thermograph created: Termógrafo creado
|
Thermograph created: Termógrafo creado
|
||||||
|
New thermograph: Nuevo termógrafo
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
Loading…
Reference in New Issue