From 6e4cbfe275a79d700e3dd9ed8f174934b4fba5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Szafra=C5=84ski?= Date: Fri, 21 Dec 2018 14:24:10 +0100 Subject: [PATCH 1/4] #68 - added customer addresses component --- view/frontend/web/js/App.vue | 5 ++- .../web/js/components/AddressData.vue | 15 ++++++-- .../web/js/components/CustomerAddresses.vue | 35 +++++++++++++++++++ .../js/components/steps/TheShippingStep.vue | 3 ++ 4 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 view/frontend/web/js/components/CustomerAddresses.vue diff --git a/view/frontend/web/js/App.vue b/view/frontend/web/js/App.vue index a5f94f5..8d7c955 100644 --- a/view/frontend/web/js/App.vue +++ b/view/frontend/web/js/App.vue @@ -37,7 +37,10 @@ export default { }, mounted () { if (this.isCustomerLoggedIn) { - this.$store.dispatch('getCustomerData') + this.$store.commit('setItem', { + item: 'customer', + value: window.config.customerData + }) } } } diff --git a/view/frontend/web/js/components/AddressData.vue b/view/frontend/web/js/components/AddressData.vue index 4cced4e..374fa67 100644 --- a/view/frontend/web/js/components/AddressData.vue +++ b/view/frontend/web/js/components/AddressData.vue @@ -1,10 +1,15 @@