project-booster-vue 9.23.0 → 9.24.1

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.23.0",
3
+ "version": "9.24.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
  <template #body>
8
8
  <pb-loader
9
- v-if="(isSearchingConfigurations || configurationsSearchError) && foundConfigurations.length === 0"
9
+ v-if="(isSearchingConfigurations || configurationsSearchError) && configurations.length === 0"
10
10
  title-loading="Chargement"
11
11
  title-error="Nous n’avons pas pu charger vos simulations"
12
12
  subtitle-loading="Nous recherchons vos simulations réalisées"
@@ -15,10 +15,10 @@
15
15
  :state="!!configurationsSearchError ? 'error' : 'loading'"
16
16
  @loader-click="retrySearch"
17
17
  />
18
- <div v-else-if="foundConfigurations.length > 0" class="pb-configurations-search__results">
18
+ <div v-else-if="configurations.length > 0" class="pb-configurations-search__results">
19
19
  <div class="pb-configurations-search__results-title">Vos simulations trouv&eacute;es</div>
20
20
  <pb-configurations-list
21
- :configurations="foundConfigurations"
21
+ :configurations="configurations"
22
22
  :is-loading-configurations="isSearchingConfigurations"
23
23
  :show-load-more-button="hasStillFoundConfigurations"
24
24
  cards-width="1of2"
@@ -27,7 +27,7 @@
27
27
  @refresh-configuration="handleRefreshConfigurations"
28
28
  />
29
29
  </div>
30
- <div v-else-if="foundConfigurations.length === 0" class="pb-configurations-search__results">
30
+ <div v-else-if="configurations.length === 0" class="pb-configurations-search__results">
31
31
  <div class="pb-configurations-search__empty-state-title">
32
32
  Nous n’avons trouvé aucune simulation associée à votre compte
33
33
  </div>
@@ -143,6 +143,7 @@ export default defineComponent({
143
143
  ICONS_PER_TOOL_TYPE,
144
144
  internalShowDialog: false,
145
145
  selectedConfiguration: null as Configuration | null,
146
+ configurations: [] as Configuration[],
146
147
  }),
147
148
 
148
149
  computed: {
@@ -176,6 +177,7 @@ export default defineComponent({
176
177
 
177
178
  created() {
178
179
  this.internalShowDialog = this.showDialog;
180
+ this.configurations = this.foundConfigurations;
179
181
  },
180
182
 
181
183
  methods: {
@@ -191,7 +193,7 @@ export default defineComponent({
191
193
  },
192
194
 
193
195
  resetConfigurationsSelectedState() {
194
- for (const configuration of this.foundConfigurations) {
196
+ for (const configuration of this.configurations) {
195
197
  configuration.selected = false;
196
198
  }
197
199
  },
@@ -136,7 +136,7 @@ export default defineComponent({
136
136
 
137
137
  async handleValidateClicked() {
138
138
  this.$emit('step-completed', {
139
- answers: [],
139
+ answers: this.payload.multiSelect.actions.VALIDATE.isAnswer ? [this.payload.multiSelect.actions.VALIDATE] : [],
140
140
  nextStep: this.payload.multiSelect.actions.VALIDATE.nextStep,
141
141
  });
142
142
  },
@@ -989,6 +989,8 @@
989
989
  "multiSelect": {
990
990
  "actions": {
991
991
  "VALIDATE": {
992
+ "isAnswer": true,
993
+ "code": "TAKE_APPOINTMENT",
992
994
  "label": "Continuer et prendre RDV",
993
995
  "nextStep": {
994
996
  "code": "APPOINTMENT_FORM"