Enable address changes in cart module

This commit is contained in:
GotPPay
2018-09-12 15:36:07 +02:00
committed by Bilal Catic
parent 8a9af7ed8c
commit a901da55fc
2 changed files with 3 additions and 9 deletions

View File

@@ -45,8 +45,7 @@ class CartCustomerDetailsContainer extends Component {
this.props.dispatch(fetchCartItems()); this.props.dispatch(fetchCartItems());
this.props.dispatch(setNextActionFct(this.handleNextAction)); this.props.dispatch(setNextActionFct(this.handleNextAction));
this.props.dispatch(setPrevActionFct(this.handlePrevAction)); this.props.dispatch(setPrevActionFct(this.handlePrevAction));
//this.props.dispatch(fetchProfileInfo(this.props.userInfo.wiaas_id_user)); this.props.dispatch(fetchProfileInfo(this.props.userInfo.wiaas_id_user));
this.props.dispatch(fetchProfileInfo());
this.props.dispatch(fetchCountries()); this.props.dispatch(fetchCountries());
} }
@@ -192,7 +191,7 @@ class CartCustomerDetailsContainer extends Component {
(profileInfo && !isProfileLoading) && (profileInfo && !isProfileLoading) &&
<ProfileAddressesContainer <ProfileAddressesContainer
params={{location: 'cart', handleDeliveryChange: this.handleDeliveryChange, idSelectedDeliveryAddress: this.state.delivery.id}} params={{location: 'cart', handleDeliveryChange: this.handleDeliveryChange, idSelectedDeliveryAddress: this.state.delivery.id}}
idUser={0}/> idUser={this.props.userInfo.wiaas_id_user}/>
} }
</Form> </Form>
</div> </div>
@@ -206,7 +205,7 @@ class CartCustomerDetailsContainer extends Component {
<BillingAddressesContainer <BillingAddressesContainer
idCompany={profileInfo.idCompany} idCompany={profileInfo.idCompany}
params={{location: 'cart', handleBillingChange: this.handleBillingChange, idSelectedBillingAddress: this.state.billing.id}} params={{location: 'cart', handleBillingChange: this.handleBillingChange, idSelectedBillingAddress: this.state.billing.id}}
idUser={0}/> idUser={this.props.userInfo.wiaas_id_user}/>
} }
</Form> </Form>
</div> </div>

View File

@@ -226,11 +226,6 @@
.cart-address-box { .cart-address-box {
margin-top: 2rem; margin-top: 2rem;
} }
#order-projects .actions-button, .add-address-btn, .address-icons {
opacity: 0.3;
pointer-events: none;
}
} }
#cart-customer-main-information-container { #cart-customer-main-information-container {