Skip to content

Commit

Permalink
COM-3798: minors changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aude committed Oct 23, 2024
1 parent dfcd72d commit 1627353
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/components/courses/ProfileOrganization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
};
Expand Down

0 comments on commit 1627353

Please sign in to comment.