project-booster-vue 9.3.0 → 9.3.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
|
@@ -427,8 +427,8 @@ export default defineComponent({
|
|
|
427
427
|
this.pageSize = this.payload.viewModel.showMore.itemsPerPage;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
+
const answerValues = this.answers?.get(this.stepName ?? '') ?? [];
|
|
430
431
|
for (const { code: answerCode } of Object.values(Object.fromEntries(this.questionPossibleAnswers))) {
|
|
431
|
-
const answerValues = this.answers?.get(this.stepName ?? '') ?? [];
|
|
432
432
|
const questionPossibleAnswer = this.questionPossibleAnswers.get(answerCode);
|
|
433
433
|
if (
|
|
434
434
|
questionPossibleAnswer &&
|
|
@@ -195,6 +195,7 @@ export default defineComponent({
|
|
|
195
195
|
remainingSteps: 0,
|
|
196
196
|
});
|
|
197
197
|
const reverseAnimation = ref(false);
|
|
198
|
+
const forceRefresh = ref(false);
|
|
198
199
|
const noPointerEvents = ref(false);
|
|
199
200
|
const stepAnimationTimeoutId = ref<ReturnType<typeof setTimeout>>();
|
|
200
201
|
const progressUpdateTimeoutId = ref<ReturnType<typeof setTimeout>>();
|
|
@@ -593,7 +594,8 @@ export default defineComponent({
|
|
|
593
594
|
watch(route, () => {
|
|
594
595
|
const requestedStepIndex = route.params?.stepCode as string;
|
|
595
596
|
|
|
596
|
-
if (requestedStepIndex && requestedStepIndex !== `${state.value.history.stepIndex}`) {
|
|
597
|
+
if ((requestedStepIndex && requestedStepIndex !== `${state.value.history.stepIndex}`) || forceRefresh.value) {
|
|
598
|
+
forceRefresh.value = false;
|
|
597
599
|
goToStep(parseInt(requestedStepIndex));
|
|
598
600
|
}
|
|
599
601
|
});
|
|
@@ -623,6 +625,7 @@ export default defineComponent({
|
|
|
623
625
|
state.value.answers = new Map<string, ScenarioStepAnswer[]>(Object.entries(state.value.answers));
|
|
624
626
|
}
|
|
625
627
|
const newRoute = `/steps/${state.value.history.stepIndex}/previous/${uuidv4()}`;
|
|
628
|
+
forceRefresh.value = true;
|
|
626
629
|
router.replace(newRoute);
|
|
627
630
|
}
|
|
628
631
|
},
|