project-booster-vue 10.1.0 → 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
|
@@ -440,7 +440,9 @@ export default defineComponent({
|
|
|
440
440
|
// MODAL
|
|
441
441
|
let showModal = ref(false);
|
|
442
442
|
|
|
443
|
-
store.dispatch('trezor/loadPartners'
|
|
443
|
+
store.dispatch('trezor/loadPartners', {
|
|
444
|
+
typeLead: props.payload.viewModel.typeLead,
|
|
445
|
+
});
|
|
444
446
|
|
|
445
447
|
const partners = computed(() => store.getters['trezor/getPartners']);
|
|
446
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
|
},
|