Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/core/components/courses/InterlocutorCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
</span>
</div>
<div class="text-copper-grey-500 text-14">{{ interlocutor.local.email }}</div>
<div v-if="get(interlocutor, 'contact.phone')" class="phone">
{{ formatPhone(interlocutor.contact) }}
</div>
<div v-else class="row items-center text-14">
<div class="dot dot-orange" />
<div class="text-orange-500">numéro manquant</div>
</div>
<template v-if="displayPhoneInfos">
<div v-if="get(interlocutor, 'contact.phone')" class="phone">{{ formatPhone(interlocutor.contact) }}</div>
<div v-else class="row items-center text-14">
<div class="dot dot-orange" />
<div class="text-orange-500">numéro manquant</div>
</div>
</template>
<div v-if="contact._id === interlocutor._id" class="contact">
<q-icon size="xxs" name="person" class="q-mr-xs" />
<span>Contact donné aux stagiaires</span>
Expand Down Expand Up @@ -63,6 +63,7 @@ export default {
interlocutorIsNonEditable: { type: Boolean, default: false },
displayConnectionInfos: { type: Boolean, default: false },
roleLabels: { type: Array, default: () => [] },
displayPhoneInfos: { type: Boolean, default: true },
},
components: {
'ni-button': Button,
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/courses/ProfileOrganization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="interlocutor-container">
<interlocutor-cell :interlocutor="course.operationsRepresentative" caption="Chargé des opérations"
:can-update="canUpdateInterlocutor" :contact="course.contact" :disable="isArchived"
@open-modal="openOperationsRepresentativeModal" />
@open-modal="openOperationsRepresentativeModal" :display-phone-infos="!isSingleCourse" />
<interlocutor-cell :interlocutor="course.companyRepresentative" caption="Chargé de formation structure"
:contact="course.contact" :can-update="canUpdateCompanyRepresentative" :disable="isArchived"
label="Ajouter un chargé de formation structure" @open-modal="openCompanyRepresentativeModal" />
Expand Down