project-booster-vue 10.0.1 → 10.1.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
|
@@ -305,6 +305,12 @@ export default defineComponent({
|
|
|
305
305
|
props.payload.viewModel.defaultValue?.zipcode?.path,
|
|
306
306
|
) || null;
|
|
307
307
|
|
|
308
|
+
const city =
|
|
309
|
+
getAnswerValue(
|
|
310
|
+
props.payload.viewModel.defaultValue?.city?.answerCode,
|
|
311
|
+
props.payload.viewModel.defaultValue?.city?.path,
|
|
312
|
+
) || null;
|
|
313
|
+
|
|
308
314
|
const convertToTypeOf = (typedVar: string, input: any): string | number | null => {
|
|
309
315
|
if (!input) {
|
|
310
316
|
return null;
|
|
@@ -338,7 +344,7 @@ export default defineComponent({
|
|
|
338
344
|
address: '',
|
|
339
345
|
additionalAddress: '',
|
|
340
346
|
zipcode: zipcode,
|
|
341
|
-
city:
|
|
347
|
+
city: city,
|
|
342
348
|
email: '',
|
|
343
349
|
phone: '',
|
|
344
350
|
optin: false,
|
|
@@ -434,7 +440,9 @@ export default defineComponent({
|
|
|
434
440
|
// MODAL
|
|
435
441
|
let showModal = ref(false);
|
|
436
442
|
|
|
437
|
-
store.dispatch('trezor/loadPartners'
|
|
443
|
+
store.dispatch('trezor/loadPartners', {
|
|
444
|
+
typeLead: props.payload.viewModel.typeLead,
|
|
445
|
+
});
|
|
438
446
|
|
|
439
447
|
const partners = computed(() => store.getters['trezor/getPartners']);
|
|
440
448
|
|
|
@@ -26,8 +26,8 @@ export const sendTrezorForm = async (typeLead: string, payload: object) => {
|
|
|
26
26
|
return response;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export const getPartners = async () => {
|
|
30
|
-
const response = await clientApi.get(`leads/partners
|
|
29
|
+
export const getPartners = async (typeLeadSlug: string) => {
|
|
30
|
+
const response = await clientApi.get(`leads/partners?typeLeadSlug=` + typeLeadSlug).catch(function (error) {
|
|
31
31
|
throw error;
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -60,9 +60,9 @@ export default {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
loadPartners: async ({ commit }: TrezorContext) => {
|
|
63
|
+
loadPartners: async ({ commit, state }: TrezorContext, { typeLead }: { typeLead: string }) => {
|
|
64
64
|
try {
|
|
65
|
-
const result = await getPartners();
|
|
65
|
+
const result = await getPartners(typeLead);
|
|
66
66
|
commit('setPartners', result);
|
|
67
67
|
} catch (error) {}
|
|
68
68
|
},
|