From 1b316573385f08d51a2b8279ace91d71732fb6d6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 9 Feb 2024 08:51:39 -0300 Subject: [PATCH] Add tooltip to VnSelegDialog Action icon and small corrections --- src/components/CreateThermographForm.vue | 1 + src/components/common/VnSelectDialog.vue | 8 +++++++- src/pages/Travel/Card/TravelThermographs.vue | 2 +- src/pages/Travel/Card/TravelThermographsForm.vue | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/CreateThermographForm.vue b/src/components/CreateThermographForm.vue index f3e1ca481..d4511a0e7 100644 --- a/src/components/CreateThermographForm.vue +++ b/src/components/CreateThermographForm.vue @@ -110,4 +110,5 @@ es: Model: Modelo Warehouse: Almacén Temperature: Temperatura + New thermograph: Nuevo termógrafo diff --git a/src/components/common/VnSelectDialog.vue b/src/components/common/VnSelectDialog.vue index 2ec3d1b1a..355a25109 100644 --- a/src/components/common/VnSelectDialog.vue +++ b/src/components/common/VnSelectDialog.vue @@ -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' }]" - /> + > + {{ tooltip }} + diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue index 96f8c55c3..435d9054f 100644 --- a/src/pages/Travel/Card/TravelThermographs.vue +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -198,7 +198,7 @@ const removeThermograph = async (id) => { color="primary" @click="redirectToThermographForm('create')" /> - + {{ t('Add thermograph') }} diff --git a/src/pages/Travel/Card/TravelThermographsForm.vue b/src/pages/Travel/Card/TravelThermographsForm.vue index db37d78a5..6758cb6ff 100644 --- a/src/pages/Travel/Card/TravelThermographsForm.vue +++ b/src/pages/Travel/Card/TravelThermographsForm.vue @@ -244,6 +244,7 @@ const onThermographCreated = async (data) => { option-value="thermographFk" option-label="thermographFk" :disable="viewAction === 'edit'" + :tooltip="t('New thermograph')" >