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
8765be73
Commit
8765be73
authored
May 06, 2021
by
Darrick Yong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up files
parent
746bd24b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
order.css
frontend/public/stylesheets/order.css
+3
-0
Filter.jsx
frontend/src/components/filter/Filter.jsx
+2
-2
orders_api_util.jsx
frontend/src/util/orders_api_util.jsx
+3
-3
No files found.
frontend/public/stylesheets/order.css
View file @
8765be73
...
...
@@ -32,7 +32,10 @@
transition
:
transform
1s
;
cursor
:
pointer
;
margin-right
:
10px
;
padding
:
5px
;
font-size
:
20px
;
background
:
white
;
border-radius
:
50%
;
}
.oii-drop.rotate
{
...
...
frontend/src/components/filter/Filter.jsx
View file @
8765be73
...
...
@@ -43,7 +43,7 @@ const Filter = ({ orders, setOrdersToShow }) => {
setOrdersToShow
(
orders
);
}
else
{
const
newOrders
=
{
allIds
:
[],
byId
:
{}
};
orders
.
allIds
.
map
((
wareId
)
=>
{
orders
.
allIds
.
forEach
((
wareId
)
=>
{
const
order
=
orders
.
byId
[
wareId
];
switch
(
order
.
status
)
{
case
RECEIVED
:
...
...
@@ -71,7 +71,7 @@ const Filter = ({ orders, setOrdersToShow }) => {
setOrdersToShow
(
newOrders
);
}
},
[
all
,
received
,
fulfilled
,
cancelled
]);
},
[
orders
,
setOrdersToShow
,
all
,
received
,
fulfilled
,
cancelled
]);
if
(
!
orders
.
allIds
.
length
)
return
null
;
...
...
frontend/src/util/orders_api_util.jsx
View file @
8765be73
...
...
@@ -79,9 +79,9 @@ const sampleNew = {
status
:
RECEIVED
,
};
const
getAllPromise
=
new
Promise
(
(
resolve
,
reject
)
=>
{
resolve
(
sampleGetAll
)
})
//
const getAllPromise = new Promise( (resolve, reject) => {
//
resolve(sampleGetAll)
//
})
const
createNewPromise
=
new
Promise
(
(
resolve
,
reject
)
=>
{
resolve
(
sampleNew
)
})
...
...
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