Commit 04c6c143 authored by d.arizona's avatar d.arizona

issue button edit

parent 873b685d
......@@ -555,15 +555,16 @@ export default class RollingOutlook extends Component {
} else {
this.setState({ loading: false })
}
// api.create().checkApprover().then(response => {
api.create().getRollingOutlookIsApprover().then(response => {
// console.log(response);
if (this.state.isApprover) {
if (response.data.data.is_approver === true) {
this.setState({ isApprover: true, checkApprover: true })
} else {
this.setState({ isApprover: this.state.lastStatus === "SUBMITTED" ? true : false, checkApprover: false })
this.setState({ isApprover: this.state.lastStatus == 'SUBMITTED'? true : false, checkApprover: false })
}
// })
})
})
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
......
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