Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
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
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
Dida Adams Arizona
Tia-dev
Commits
8585db7a
Commit
8585db7a
authored
Jul 10, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Fixing parameter See merge request
!1890
parents
ff2e3146
3dae072c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+4
-4
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
8585db7a
...
...
@@ -556,7 +556,7 @@ export default class CreateParameter extends Component {
// } else if (R.isEmpty(this.state.tempData.description)) {
// this.setState({ errorDeskripsi: true, msgErrorDeskripsi: 'Deskripsi tidak boleh kosong' })
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
===
"CURRENCY"
&&
R
.
isNil
(
this
.
state
.
getReportName
))
{
this
.
setState
({
errorReportName
:
true
,
msgErrorReportName
:
'Report
Name
Cannot be Empty'
})
this
.
setState
({
errorReportName
:
true
,
msgErrorReportName
:
'Report Cannot be Empty'
})
}
else
if
(
R
.
isEmpty
(
this
.
state
.
tempData
.
value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
))
{
this
.
setState
({
errorValue
:
true
,
msgErrorValue
:
'Value Cannot be Empty'
})
}
else
if
((
!
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)))
{
...
...
@@ -585,7 +585,7 @@ export default class CreateParameter extends Component {
// } else if (R.isEmpty(this.state.description)) {
// this.setState({ errorDeskripsi: true, msgErrorDeskripsi: 'Deskripsi tidak boleh kosong' })
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
===
"CURRENCY"
&&
R
.
isNil
(
this
.
state
.
getReportName
))
{
this
.
setState
({
errorReportName
:
true
,
msgErrorReportName
:
'Report
Name
Cannot be Empty'
})
this
.
setState
({
errorReportName
:
true
,
msgErrorReportName
:
'Report Cannot be Empty'
})
}
else
if
((
R
.
isEmpty
(
this
.
state
.
value
)
&&
R
.
isEmpty
(
this
.
state
.
maxValue
)
&&
R
.
isEmpty
(
this
.
state
.
minValue
)))
{
this
.
setState
({
errorValue
:
true
,
msgErrorValue
:
'Value Cannot be Empty'
})
}
else
if
((
!
R
.
isEmpty
(
this
.
state
.
maxValue
)
&&
R
.
isEmpty
(
this
.
state
.
minValue
)))
{
...
...
@@ -867,7 +867,7 @@ export default class CreateParameter extends Component {
{...
params
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"
Report Name
"
label
=
"
Type Report
"
// error={this.state.errorPerusahaan}
// helperText={this.state.msgErrorPerusahaan}
/>
}
...
...
@@ -1302,7 +1302,7 @@ export default class CreateParameter extends Component {
{...
params
}
InputProps
=
{{
...
params
.
InputProps
,
style
:
{
fontSize
:
11
}
}}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}}
label
=
"
Report Name
"
label
=
"
Type Report
"
error
=
{
this
.
state
.
errorReportName
}
helperText
=
{
this
.
state
.
msgErrorReportName
}
/>
}
...
...
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