cart state for item in details page finnaly shows (arrggh worst kind of bugs)
This commit is contained in:
@@ -6,11 +6,10 @@ var CartActions = {
|
||||
|
||||
load: function() {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.LOAD
|
||||
actionType: CartConstants.LOAD_CART_CONTENTS
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
addItem: function(itemId) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.ADD_ITEM,
|
||||
@@ -23,6 +22,12 @@ var CartActions = {
|
||||
actionType: CartConstants.TAKE_ITEM_OUT,
|
||||
itemId: itemId
|
||||
});
|
||||
},
|
||||
|
||||
dataLoaded: function() {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: CartConstants.CART_DATA_LOADED
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user