Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_excelso
Commits
7854ba1a
Commit
7854ba1a
authored
May 06, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
6fcf4afd
004e96f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
MenuSelection.js
view/MenuSelection.js
+16
-17
No files found.
view/MenuSelection.js
View file @
7854ba1a
...
@@ -24,8 +24,6 @@ class MenuSelection extends React.Component {
...
@@ -24,8 +24,6 @@ class MenuSelection extends React.Component {
order_list
:
[],
order_list
:
[],
list_cart
:
[],
list_cart
:
[],
indicator
:
true
,
indicator
:
true
,
my_lat
:
0
,
my_long
:
0
}
}
}
}
...
@@ -38,16 +36,17 @@ class MenuSelection extends React.Component {
...
@@ -38,16 +36,17 @@ class MenuSelection extends React.Component {
indicator
:
true
indicator
:
true
})
})
this
.
_getPermissions
()
this
.
_getPermissions
()
this
.
getMenuList
()
}
}
// console.log("INI OUTLET : "+ this.props.outlet_id)
// console.log("INI OUTLET : "+ this.props.outlet_id)
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
if
(
this
.
props
.
outlet_id
!=
''
)
{
if
(
this
.
props
.
outlet_id
!=
''
)
{
this
.
getMenuList
()
}
else
{
this
.
setState
({
this
.
setState
({
indicator
:
true
indicator
:
true
})
})
this
.
_getPermissions
()
this
.
_getPermissions
()
this
.
getMenuList
()
}
}
});
});
}
}
...
@@ -167,9 +166,9 @@ class MenuSelection extends React.Component {
...
@@ -167,9 +166,9 @@ class MenuSelection extends React.Component {
})
})
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
const
{
navigation
}
=
this
.
props
const
{
navigation
}
=
this
.
props
let
response
=
error
.
response
.
data
let
response
=
error
.
response
.
data
session
(
response
,
navigation
)
session
(
response
,
navigation
)
Alert
.
alert
(
response
.
msg
);
Alert
.
alert
(
response
.
msg
);
})
})
...
@@ -285,7 +284,7 @@ class MenuSelection extends React.Component {
...
@@ -285,7 +284,7 @@ class MenuSelection extends React.Component {
<
View
style
=
{
styles
.
shadow
}
>
<
View
style
=
{
styles
.
shadow
}
>
{
{
this
.
state
.
indicator
==
true
?
(
<
ActivityIndicator
style
=
{{
top
:
10
}}
size
=
"large"
color
=
"#c9af6d"
/>
)
:
(
this
.
state
.
indicator
==
true
?
(
<
ActivityIndicator
style
=
{{
top
:
10
}}
size
=
"large"
color
=
"#c9af6d"
/>
):
(
<
View
style
=
{{
flexDirection
:
'row'
,
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
}}
>
<
Text
style
=
{{
fontSize
:
12
,
margin
:
10
}}
>
Price
Estimation
/
Item
{
this
.
props
.
order_quantity
}
<
/Text
>
<
Text
style
=
{{
fontSize
:
12
,
margin
:
10
}}
>
Price
Estimation
/
Item
{
this
.
props
.
order_quantity
}
<
/Text
>
...
...
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