From 1627353af0533e1fe2016919c0ea5b60570247ff Mon Sep 17 00:00:00 2001 From: Aude Date: Wed, 23 Oct 2024 14:14:02 +0200 Subject: [PATCH] COM-3798: minors changes --- src/core/components/courses/ProfileOrganization.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/components/courses/ProfileOrganization.vue b/src/core/components/courses/ProfileOrganization.vue index e2816a3846..f5be2d3f63 100644 --- a/src/core/components/courses/ProfileOrganization.vue +++ b/src/core/components/courses/ProfileOrganization.vue @@ -787,11 +787,12 @@ export default { }; const openTrainerModal = (event) => { - const { action, interlocutorId: trainerId } = event; if (isArchived.value) { return NotifyWarning('Vous ne pouvez pas ajouter d’intervenant(e) à une formation archivée.'); } + const { action, interlocutorId: trainerId } = event; + if (action === DELETION) { const trainerToRemove = course.value.trainers.find(t => t._id === trainerId); openInterlocutorDeletionValidationModal(get(trainerToRemove, 'identity'), TRAINER, trainerId); @@ -815,6 +816,7 @@ export default { if (isArchived.value) { return NotifyWarning('Vous ne pouvez pas modifier le contact d’une formation archivée.'); } + tmpContactId.value = course.value.contact._id; contactAdditionModal.value = true; };