Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Prasetya Saputra
clone_excelso
Commits
3f6d45a1
Commit
3f6d45a1
authored
Jun 06, 2020
by
Afid
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
# Conflicts: # redux/globalReducer.js
parents
698916df
0bc95751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
globalReducer.js
redux/globalReducer.js
+8
-3
No files found.
redux/globalReducer.js
View file @
3f6d45a1
...
@@ -73,6 +73,8 @@ const globalState = {
...
@@ -73,6 +73,8 @@ const globalState = {
grabdropoff
:
''
,
grabdropoff
:
''
,
grabdestination
:
''
,
grabdestination
:
''
,
notes
:
''
,
balanceUsed
:
''
,
balanceUsed
:
''
,
pointused
:
''
,
pointused
:
''
,
...
@@ -194,6 +196,7 @@ const rootReducer = (state = globalState, action) => {
...
@@ -194,6 +196,7 @@ const rootReducer = (state = globalState, action) => {
email
:
action
.
data
.
email
,
email
:
action
.
data
.
email
,
}
}
}
}
case
ActionType
.
SET_PROSES
:
{
case
ActionType
.
SET_PROSES
:
{
return
{
return
{
...
state
,
...
state
,
...
@@ -715,8 +718,10 @@ const rootReducer = (state = globalState, action) => {
...
@@ -715,8 +718,10 @@ const rootReducer = (state = globalState, action) => {
case
ActionType
.
SET_EDIT_NOTE
:
{
case
ActionType
.
SET_EDIT_NOTE
:
{
const
update
=
action
.
data
.
item
;
const
update
=
action
.
data
.
item
;
// const menu = action.data.item
// Cara 1
// console.log("INI HASILNY"+ menu)
// Update shopping chart pakai cara 1
updated_data
=
[]
updated_data
=
[]
for
(
let
i
=
0
;
i
<
state
.
order_item
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
state
.
order_item
.
length
;
i
++
)
{
const
old_data
=
state
.
order_item
[
i
];
const
old_data
=
state
.
order_item
[
i
];
...
@@ -733,7 +738,7 @@ const rootReducer = (state = globalState, action) => {
...
@@ -733,7 +738,7 @@ const rootReducer = (state = globalState, action) => {
}
}
}
}
//
C
ara 2
//
Update menu list pakai c
ara 2
updated_menu
=
state
.
menu_item
updated_menu
=
state
.
menu_item
// dicari dulu index keberapa yg mau diupdate notenya
// dicari dulu index keberapa yg mau diupdate notenya
...
...
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