project-booster-vue 10.22.7 → 10.22.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
|
@@ -108,8 +108,8 @@ export const answerGettersMappers: Map<string, (param: any) => void> = new Map<s
|
|
|
108
108
|
MPbNameInput: ({ projectName }: { projectName: string }) => projectName,
|
|
109
109
|
MPbCitySearch: ({ city }: { city: any }) => city.postalCode,
|
|
110
110
|
MPbIncrementalAmountInput: ({ value }: { value: string }) => parseInt(value),
|
|
111
|
-
MPbProducts: ({ product }: { product:
|
|
112
|
-
return { product };
|
|
111
|
+
MPbProducts: ({ product }: { product: ProductPayload }): { product: ProductPayload } => {
|
|
112
|
+
return { product: product };
|
|
113
113
|
},
|
|
114
114
|
MPbDimensionsInput: ({ width, length }: { width: string; length: string }): { width: number; length: number } => {
|
|
115
115
|
return { width: parseFloat(width), length: parseFloat(length) };
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
import { useStore } from 'vuex';
|
|
62
62
|
import { MButton, MLink } from '@mozaic-ds/vue-3';
|
|
63
63
|
import { ScenarioProduct, ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
64
|
-
import { defineProps, PropType, onMounted, ref, Ref } from 'vue';
|
|
64
|
+
import { defineProps, PropType, onMounted, ref, Ref, computed } from 'vue';
|
|
65
65
|
import { PayloadAction } from '../types/genericPayload';
|
|
66
66
|
import { formatEvent, EventTypeEnum } from '../services/event';
|
|
67
67
|
|
|
@@ -70,11 +70,7 @@ const emit = defineEmits(['go-back', 'step-completed']);
|
|
|
70
70
|
const store = useStore();
|
|
71
71
|
const metadata = store.getters['metaData/metaData'];
|
|
72
72
|
const refProduct = store.getters['products/getRefProduct'];
|
|
73
|
-
const product
|
|
74
|
-
photo: '',
|
|
75
|
-
designation: '',
|
|
76
|
-
value: '',
|
|
77
|
-
});
|
|
73
|
+
const product = computed(() => store.getters['products/getCurrentProduct']);
|
|
78
74
|
|
|
79
75
|
const props = defineProps({
|
|
80
76
|
/**
|
|
@@ -139,7 +135,6 @@ onMounted(() => {
|
|
|
139
135
|
payload: props.payload.viewModel.defaultProduct,
|
|
140
136
|
storeId: metadata && metadata.storeId ? metadata.storeId : '',
|
|
141
137
|
});
|
|
142
|
-
product.value = store.getters['products/getCurrentProduct'];
|
|
143
138
|
}
|
|
144
139
|
});
|
|
145
140
|
|
|
@@ -155,7 +150,7 @@ const callAction = (action: PayloadAction) => {
|
|
|
155
150
|
let productToSend = null;
|
|
156
151
|
|
|
157
152
|
if (refProduct) {
|
|
158
|
-
productToSend = product;
|
|
153
|
+
productToSend = product.value;
|
|
159
154
|
}
|
|
160
155
|
|
|
161
156
|
emit('step-completed', {
|