Skip to content

Commit 0b561d3

Browse files
authored
feat: transmit autonomous program opportunities to CE (#2116)
lié à #2117
1 parent c1c6c30 commit 0b561d3

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

apps/nuxt/src/components/program/detail/ProgramForm.vue

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<TeeForm
77
v-if="form"
88
:data-id="currentProgram.id"
9-
:show-c-e-logo="!isProgramAutonomous"
9+
:show-c-e-logo="true"
1010
:phone-callback="phoneCallback"
1111
:form="form"
1212
:form-type="OpportunityType.Program"
@@ -22,7 +22,6 @@ import { computed } from 'vue'
2222
import { storeToRefs } from 'pinia'
2323
import { useProgramStore } from '@/stores/program'
2424
import Opportunity from '@/tools/opportunity'
25-
import Program from '@/tools/program/program'
2625
import Translation from '@/tools/translation'
2726
import { OpportunityType } from '@/types'
2827
@@ -33,10 +32,6 @@ defineProps<Props>()
3332
3433
const { currentProgram } = storeToRefs(useProgramStore())
3534
36-
const isProgramAutonomous = computed(() => {
37-
return Program.isProgramAutonomous(currentProgram.value)
38-
})
39-
4035
const form = computed(() => {
4136
if (!currentProgram.value) {
4237
return undefined
@@ -45,13 +40,7 @@ const form = computed(() => {
4540
return Opportunity.getProgramFormFields(currentProgram.value)
4641
})
4742
48-
const phoneCallback = computed(() =>
49-
isProgramAutonomous.value
50-
? Translation.t('form.phoneContactAutonomy', {
51-
operator: currentProgram.value?.['opérateur de contact']
52-
})
53-
: Translation.t('form.phoneContactCE')
54-
)
43+
const phoneCallback = computed(() => Translation.t('form.phoneContactCE'))
5544
5645
const errorEmailSubject = computed(() =>
5746
Translation.t('program.form.errorEmail.subject', {

libs/backend-ddd/src/opportunityHub/infrastructure/api/placedesentreprises/placeDesEntreprises.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ export class PlaceDesEntreprises extends OpportunityHubAbstract {
3232
return new Error('Operator List non valid for Place des entreprises')
3333
}
3434

35-
override support = (opportunityData: OpportunityAssociatedData) => {
36-
if (opportunityData.isProgram()) {
37-
return !opportunityData.data['activable en autonomie']
38-
}
35+
override support = (_opportunityData: OpportunityAssociatedData) => {
3936
return true
4037
}
4138

0 commit comments

Comments
 (0)