Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
warehouse-management
Commits
07cb5fe4
Commit
07cb5fe4
authored
May 04, 2021
by
Darrick Yong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add actions and utils
parent
b5eeb0ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
order_actions.js
frontend/src/actions/order_actions.js
+4
-4
OrderIndex.jsx
frontend/src/components/order/OrderIndex.jsx
+1
-1
orders_api_util.jsx
frontend/src/util/orders_api_util.jsx
+1
-1
No files found.
frontend/src/actions/order_actions.js
View file @
07cb5fe4
...
@@ -9,10 +9,10 @@ const receiveOrders = (payload) => ({
...
@@ -9,10 +9,10 @@ const receiveOrders = (payload) => ({
payload
,
payload
,
})
})
const
receiveOrder
=
(
order
)
=>
({
//
const receiveOrder = (order) => ({
type
:
RECEIVE_ORDER
,
//
type: RECEIVE_ORDER,
order
,
//
order,
})
//
})
export
const
fetchOrders
=
()
=>
(
dispatch
)
=>
{
export
const
fetchOrders
=
()
=>
(
dispatch
)
=>
{
OrderAPIUtil
.
getOrders
()
OrderAPIUtil
.
getOrders
()
...
...
frontend/src/components/order/OrderIndex.jsx
View file @
07cb5fe4
...
@@ -11,7 +11,7 @@ const OrderIndex = ({ orders, fetchOrders }) => {
...
@@ -11,7 +11,7 @@ const OrderIndex = ({ orders, fetchOrders }) => {
setFetchAttempted
(
true
);
setFetchAttempted
(
true
);
fetchOrders
();
fetchOrders
();
}
}
},
[
])
},
[
fetchOrders
,
fetchAttempted
])
return
(
return
(
<
div
>
<
div
>
...
...
frontend/src/util/orders_api_util.jsx
View file @
07cb5fe4
import
axios
from
'axios'
;
//
import axios from 'axios';
const
sampleRes
=
{
const
sampleRes
=
{
allIds
:
[
"1"
,
"2"
,
"3"
],
allIds
:
[
"1"
,
"2"
,
"3"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment