created a very ugly report
This commit is contained in:
@@ -34,10 +34,22 @@ var CartPage = React.createClass({
|
||||
)
|
||||
});
|
||||
|
||||
console.log("bla :" , this.state.items.length);
|
||||
var deliveryDestination = (<span></span>);
|
||||
|
||||
if (this.state.destinationValid) {
|
||||
deliveryDestination = (
|
||||
<div>
|
||||
Na adresu {this.state.deliveryDestination.name},
|
||||
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
var cartTotal = (
|
||||
<div className="row cart-total">
|
||||
|
||||
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} deliveryCosts={this.state.deliveryCosts}/>
|
||||
<div className="col-md-1 span1">
|
||||
<button className="btn btn-warning" onClick={this._onOrderClick}>Izgleda OK</button>
|
||||
|
||||
@@ -213,7 +213,8 @@ var CartStore = _.extend({}, EventEmitter.prototype, {
|
||||
deliveryDestination: _deliveryDestination,
|
||||
deliveryDestinationErrors: _deliveryDestinationErrors,
|
||||
isDeliveryDestinationValid: isDeliveryDestinationValid(),
|
||||
deliveryCosts: _deliveryCosts
|
||||
deliveryCosts: _deliveryCosts,
|
||||
destinationValid: isDeliveryDestinationValid()
|
||||
};
|
||||
return state;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user