From 892fda888b5632bc3648d5192a97f1970c0c7fbd Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 9 Dec 2024 16:15:50 +0100 Subject: [PATCH 1/3] feat: add departmentMail --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Worker/Card/WorkerDescriptor.vue | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 9c645bdbd..213f67db7 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -335,6 +335,7 @@ globals: deleteConfirmTitle: Delete selected elements changeState: Change state raid: 'Raid {daysInForward} days' + departmentMail: Ce errors: statusUnauthorized: Access denied statusInternalServerError: An internal server error has ocurred diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 17f82e11e..5e5e4762e 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -339,6 +339,7 @@ globals: deleteConfirmTitle: Eliminar los elementos seleccionados changeState: Cambiar estado raid: 'Redada {daysInForward} días' + departmentMail: Ce errors: statusUnauthorized: Acceso denegado statusInternalServerError: Ha ocurrido un error interno del servidor diff --git a/src/pages/Worker/Card/WorkerDescriptor.vue b/src/pages/Worker/Card/WorkerDescriptor.vue index 73ea34fe9..12eb756f0 100644 --- a/src/pages/Worker/Card/WorkerDescriptor.vue +++ b/src/pages/Worker/Card/WorkerDescriptor.vue @@ -10,6 +10,7 @@ import { useState } from 'src/composables/useState'; import axios from 'axios'; import VnImg from 'src/components/ui/VnImg.vue'; import EditPictureForm from 'components/EditPictureForm.vue'; +import department from 'src/router/modules/department'; const $props = defineProps({ id: { @@ -143,6 +144,11 @@ const handlePhotoUpdated = (evt = false) => { :value="entity.user?.emailUser?.email" copy /> + Date: Mon, 9 Dec 2024 16:24:27 +0100 Subject: [PATCH 2/3] refactor: use scoped CSS --- src/components/ui/CardDescriptor.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 83af77442..c7e03840f 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -221,9 +221,8 @@ const toModule = computed(() => color="primary" /> - - -