project-booster-vue 9.44.7 → 9.44.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "9.44.7",
3
+ "version": "9.44.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -65,7 +65,7 @@ export const TemplateSandbox = (args, { argTypes }) => {
65
65
  businessUnit: '001',
66
66
  correlationId: uuidv4(),
67
67
  groupId: 'groupId',
68
- interventionIds: ['interventionId'],
68
+ calendarId: 'calendarId',
69
69
  appointmentId: 'appointmentId',
70
70
  sourceDetail: 'Appointment_email',
71
71
  });
@@ -55,7 +55,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
55
55
  businessUnit: '001',
56
56
  source: 'APPOINTMENT_QUALIFICATION',
57
57
  sourceDetail: 'KITCHEN',
58
- interventionIds: ['375615'],
58
+ calendarId: '375615',
59
59
  storeId: '006',
60
60
  appointmentQualificationFormStructure: SCENARIO,
61
61
  });
@@ -48,8 +48,8 @@ export default defineComponent({
48
48
  if (props.payload?.viewModel?.calendarUrlPath) {
49
49
  url = `${baseUrl}/${props.payload.viewModel.calendarUrlPath}?`;
50
50
  } else {
51
- url = `${baseUrl}/leroy-merlin-${sessions.storeId}?`;
52
- url += sessions.interventionIds.map((id: string) => 'intervention_ids[]=' + id).join('&');
51
+ url = `${baseUrl}/leroy-merlin-${sessions.storeId}`;
52
+ url += `?calendar_id=${sessions.calendarId}`;
53
53
  url += `&vevent[str5]=${currentAppointmentQualification.inhabitantProjectId}`;
54
54
  }
55
55
 
@@ -106,12 +106,8 @@ export default defineComponent({
106
106
  store.dispatch('projects/loadTypologies');
107
107
  };
108
108
 
109
- const defineDefaultProjectName = (typologyCode: string, typologyName: string) => {
110
- if (typologyCode === '/domestic-spaces/59461') {
111
- name.value = 'Estimation pour ' + typologyName.toLowerCase();
112
- } else {
113
- name.value = 'Estimation pour la ' + typologyName.toLowerCase();
114
- }
109
+ const defineDefaultProjectName = (typologyName: string) => {
110
+ name.value = 'Estimation ' + typologyName.toLowerCase();
115
111
  };
116
112
 
117
113
  const handleTyplologyClick = (typologyCode: string, typologyName: string) => {
@@ -119,7 +115,7 @@ export default defineComponent({
119
115
 
120
116
  setTimeout(() => {
121
117
  emitInputEvent(typologyCode);
122
- defineDefaultProjectName(typologyCode, typologyName);
118
+ defineDefaultProjectName(typologyName);
123
119
  currentTypology.value = typologyCode;
124
120
  });
125
121
  };