Commit 53d9c7b9 authored by Rifka Kurnia Irfiana's avatar Rifka Kurnia Irfiana

update apprv matrix

parent dc310d2c
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment