Commit 9a678931 authored by a.bairuha's avatar a.bairuha

update

parent a7588044
...@@ -57,6 +57,7 @@ export default class BudgetTahunan extends Component { ...@@ -57,6 +57,7 @@ export default class BudgetTahunan extends Component {
intent: "", intent: "",
approverID: null, approverID: null,
pic: '', pic: '',
submitter: false,
detailRevisiCheck: [] detailRevisiCheck: []
} }
this.fileHandler = this.fileHandler.bind(this); this.fileHandler = this.fileHandler.bind(this);
...@@ -266,6 +267,7 @@ export default class BudgetTahunan extends Component { ...@@ -266,6 +267,7 @@ export default class BudgetTahunan extends Component {
if (response.data.data) { if (response.data.data) {
this.setState({ this.setState({
submissionID: response.data.data.submission_id, isSubmit: false, submissionID: response.data.data.submission_id, isSubmit: false,
submitter: response.data.data.submitter,
approverID: response.data.data.approve_id, pic: response.data.data.approver == null? '' : response.data.data.approver, 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 lastStatus: response.data.data.last_status === null ? 'SUBMIT' : response.data.data.last_status
}, () => { }, () => {
...@@ -964,7 +966,7 @@ export default class BudgetTahunan extends Component { ...@@ -964,7 +966,7 @@ export default class BudgetTahunan extends Component {
</div> </div>
</button> </button>
</div> : </div> :
this.state.lastStatus === 'SUBMITTED' ? this.state.lastStatus === 'SUBMITTED' && this.state.submitter ?
<div style={{ borderTop: 'solid 1px #c4c4c4', padding: 10, backgroundColor: '#f5f5f5', width: '100%', display: 'flex', justifyContent: 'flex-end' }} > <div style={{ borderTop: 'solid 1px #c4c4c4', padding: 10, backgroundColor: '#f5f5f5', width: '100%', display: 'flex', justifyContent: 'flex-end' }} >
<button <button
style={{ style={{
......
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