-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #559 from gurch101/add-customer-detail-modal
Add customer detail modal to admin order creator (SHUUP-2725)
- Loading branch information
Showing
14 changed files
with
343 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
shoop/admin/modules/orders/static_src/create/reducers/customerDetails.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* This file is part of Shoop. | ||
* | ||
* Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. | ||
* | ||
* This source code is licensed under the AGPLv3 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import {handleActions} from "redux-actions"; | ||
import _ from "lodash"; | ||
|
||
export default handleActions({ | ||
retrieveCustomerDetails: _.identity, | ||
receiveCustomerDetails: (state, {payload}) => { | ||
return _.assign(state, { | ||
customerInfo: payload.data.customer_info, | ||
orderSummary: payload.data.order_summary, | ||
recentOrders: payload.data.recent_orders | ||
}); | ||
}, | ||
showCustomerModal: ((state, {payload}) => _.assign(state, {showCustomerModal: payload})) | ||
}, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.