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
53d9c7b9
Commit
53d9c7b9
authored
Sep 02, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update apprv matrix
parent
dc310d2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
CreateApprovalMatrix.js
src/container/ApprovalMatrix/CreateApprovalMatrix.js
+5
-5
EditApprovalMatrix.js
src/container/ApprovalMatrix/EditApprovalMatrix.js
+5
-5
No files found.
src/container/ApprovalMatrix/CreateApprovalMatrix.js
View file @
53d9c7b9
...
...
@@ -217,9 +217,9 @@ export default class CreateApprovalMatrix extends Component {
else
if
(
R
.
isNil
(
this
.
state
.
userId
))
{
this
.
setState
({
errorApproved
:
true
,
msgErrApproved
:
'Approver Name Cannot be Empty.'
})
}
//
else if (R.isNil(this.state.operatorId)) {
//
this.setState({ errorOperator: true, msgErrOperator: 'Operator Cannot be Empty.' })
//
}
else
if
(
R
.
isNil
(
this
.
state
.
operatorId
))
{
this
.
setState
({
errorOperator
:
true
,
msgErrOperator
:
'Operator Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'Valid From Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
...
...
@@ -388,8 +388,8 @@ export default class CreateApprovalMatrix extends Component {
<
TextField
{...
params
}
label
=
"Operator"
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
''
)}
//
error={this.state.errorOperator}
//
helperText={this.state.msgErrOperator}
error
=
{
this
.
state
.
errorOperator
}
helperText
=
{
this
.
state
.
msgErrOperator
}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
...
...
src/container/ApprovalMatrix/EditApprovalMatrix.js
View file @
53d9c7b9
...
...
@@ -257,9 +257,9 @@ export default class EditApprovalMatrix extends Component {
else
if
(
R
.
isNil
(
this
.
state
.
getApprovedBy
))
{
this
.
setState
({
errorApproved
:
true
,
msgErrApproved
:
'Approver Name Cannot be Empty.'
})
}
//
else if (R.isNil(this.state.getOperators)) {
//
this.setState({ errorOperator: true, msgErrOperator: 'Operator Cannot be Empty.' })
//
}
else
if
(
R
.
isNil
(
this
.
state
.
getOperators
))
{
this
.
setState
({
errorOperator
:
true
,
msgErrOperator
:
'Operator Cannot be Empty.'
})
}
else
if
(
R
.
isEmpty
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'Valid From Cannot be Empty.'
})
}
else
if
(
R
.
isEmpty
(
this
.
state
.
endDate
))
{
...
...
@@ -429,8 +429,8 @@ export default class EditApprovalMatrix extends Component {
<
TextField
{...
params
}
label
=
"Operator"
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
''
)}
//
error={this.state.errorOperator}
//
helperText={this.state.msgErrOperator}
error
=
{
this
.
state
.
errorOperator
}
helperText
=
{
this
.
state
.
msgErrOperator
}
InputLabelProps
=
{{
style
:
{
fontSize
:
11
,
...
...
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