project-booster-vue 8.104.3 → 8.104.4

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": "8.104.3",
3
+ "version": "8.104.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test:unit": "vue-cli-service test:unit --forceExit --detectOpenHandles",
@@ -35,19 +35,16 @@
35
35
  :centered-cards="false"
36
36
  />
37
37
  </div>
38
- <div
39
- class="pb-products__complementary"
40
- v-if="products.complementaryProducts && products.complementaryProducts.length > 0"
41
- >
38
+ <div class="pb-products__complementary" v-if="complementaryProducts && complementaryProducts.length > 0">
42
39
  <div class="pb-products__complementary-title">Produits complémentaires</div>
43
40
  <pb-carousel
44
- :items="products.complementaryProducts"
41
+ :items="complementaryProducts"
45
42
  @item-clicked="({ item }) => displayProductsList(item, 'complementaryProducts')"
46
43
  />
47
44
  </div>
48
- <div class="pb-products__services" v-if="products.services && products.services.length > 0">
45
+ <div class="pb-products__services" v-if="services && services.length > 0">
49
46
  <div class="pb-products__services-title">Pose et services</div>
50
- <pb-carousel :items="products.services" @item-clicked="({ item }) => displayProductsList(item, 'services')" />
47
+ <pb-carousel :items="services" @item-clicked="({ item }) => displayProductsList(item, 'services')" />
51
48
  </div>
52
49
  </m-flex>
53
50
  </div>
@@ -80,12 +77,22 @@ export default {
80
77
  }),
81
78
  workTypes() {
82
79
  return this.products.workTypes
83
- ? this.products.workTypes.map((product) => {
84
- product.viewModel['width'] = '1of2';
85
- product.viewModel['widthFromM'] = '1of3';
86
- product.viewModel['widthFromL'] = '1of3';
87
- return product;
88
- })
80
+ ? this.products.workTypes
81
+ .filter((workType) => !workType.error)
82
+ .map((product) => {
83
+ product.viewModel['width'] = '1of2';
84
+ product.viewModel['widthFromM'] = '1of3';
85
+ product.viewModel['widthFromL'] = '1of3';
86
+ return product;
87
+ })
88
+ : [];
89
+ },
90
+ services() {
91
+ return this.products.services ? this.products.services.filter((workType) => !workType.error) : [];
92
+ },
93
+ complementaryProducts() {
94
+ return this.products.complementaryProducts
95
+ ? this.products.complementaryProducts.filter((workType) => !workType.error)
89
96
  : [];
90
97
  },
91
98
  },
@@ -158,7 +158,8 @@
158
158
  "image": "https://images.unsplash.com/photo-1566601146613-82f9dbd68995?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2175&q=80",
159
159
  "title": "The card title 7",
160
160
  "text": "The card text",
161
- "url": "/PRODUCT-LIST-NAV/1234"
161
+ "url": "/PRODUCT-LIST-NAV/1234",
162
+ "error": "a wild error occured"
162
163
  },
163
164
  {
164
165
  "image": "https://images.unsplash.com/photo-1557967107-ffa9582f8565?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1868&q=80",
@@ -73,11 +73,13 @@ export default {
73
73
  task,
74
74
  completion = task?.viewModel?.completions ? task?.viewModel?.completions[0] : null,
75
75
  ) => {
76
- /**
77
- * Emitted when the task is completed
78
- * @event task-completed
79
- */
80
- emit('task-completed', { task, completion });
76
+ if (!task.state.done) {
77
+ /**
78
+ * Emitted when the task is completed
79
+ * @event task-completed
80
+ */
81
+ emit('task-completed', { task, completion });
82
+ }
81
83
  };
82
84
  const handleShowTaskDetails = (task) => {
83
85
  /**
@@ -170,11 +170,14 @@ export default {
170
170
  parentCorrelationId: rootState.appointmentQualification.sessions.correlationId,
171
171
  inhabitantProjectId: rootState.appointmentQualification.currentAppointmentQualification.inhabitantProjectId,
172
172
  };
173
+ if (state.uploadedDocumentId) {
174
+ documentEvent['documentId'] = state.uploadedDocumentId;
175
+ }
173
176
  if (event.eventName === 'qualify-by-the-front') {
174
177
  documentEvent = {
175
178
  name: event.eventName,
176
179
  businessUnit: '001',
177
- documentId: state.uploadedDocumentId,
180
+ documentId: null,
178
181
  correlationId: state.documentCorrelationId,
179
182
  parentCorrelationId: rootState.appointmentQualification.sessions.correlationId,
180
183
  inhabitantProjectId: rootState.appointmentQualification.currentAppointmentQualification.inhabitantProjectId,
@@ -201,9 +204,6 @@ export default {
201
204
  documentEvent['documentSizeInBytes'] = size;
202
205
  }
203
206
  }
204
- if (state.uploadedDocumentId) {
205
- documentEvent['documentId'] = state.uploadedDocumentId;
206
- }
207
207
  await sendDocumentsEvent(documentEvent);
208
208
  },
209
209
  generateCorrelationId({ commit }) {