Commit 73779c44 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-dev(pc)' into 'master'

++

See merge request !580
parents bca73ded 5c7bcb39
......@@ -125,7 +125,7 @@ export default class BudgetTahunan extends Component {
if (response.data.data.length > 0) {
this.getRevision()
} else {
this.setState({ listRevision: null, revision: null, dataTable: [], loading: false, checkApprover: false, lastRevision: "", visibleTableHistory: false })
this.setState({ listRevision: null, revision: null, dataTable: [], checkApprover: false, lastRevision: "", visibleTableHistory: false })
}
//
})
......@@ -379,7 +379,6 @@ export default class BudgetTahunan extends Component {
submitter: response.data.data.submitter,
approverID: response.data.data.approve_id, pic: response.data.data.approver == null ? '' : response.data.data.approver,
lastStatus: response.data.data.last_status === null ? 'SUBMIT' : response.data.data.last_status,
loading: false,
lastRevision: response.data.data.last_revision,
btnApprove: response.data.data.is_submit
}, () => {
......@@ -441,9 +440,9 @@ export default class BudgetTahunan extends Component {
// console.log(payload)
api.create().approvalSubmission(body).then((res) => {
// console.log(res)
this.setState({ loading: false }, () => {
// this.setState({ loading: false }, () => {
this.getSubmission()
})
// })
if (type == 'revision') {
api.create().createPeriodeRevision(payload).then((res))
}
......
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