Commit f48aea27 authored by Rifka Kurnia Irfiana's avatar Rifka Kurnia Irfiana

load

parent bfe70c4c
......@@ -5008,8 +5008,10 @@ export default class TaxPlanning extends Component {
// }
onClick={() =>
this.state.handleTekTekTek == 1? null :
this.setState({handleTekTekTek: 1}, () => {
this.backToMasterBudget('draft')
this.setState({handleTekTekTek: 1, loading: true}, () => {
setTimeout(() => {
this.backToMasterBudget('draft')
}, 100);
})
}
style={{
......@@ -5043,8 +5045,10 @@ export default class TaxPlanning extends Component {
this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
:
this.state.handleTekTekTek == 1? null :
this.setState({handleTekTekTek: 1}, () => {
this.backToMasterBudget('submitted')
this.setState({handleTekTekTek: 1, loading: true}, () => {
setTimeout(() => {
this.backToMasterBudget('submitted')
}, 100);
})}
style={{
backgroundColor: 'transparent',
......@@ -5133,17 +5137,26 @@ export default class TaxPlanning extends Component {
outline: 'none',
marginRight: 20
}}
onClick={() =>
this.state.editable === true ?
null : this.setState({ loading: true}, () =>
this.state.handleTekTekTek == 1 ? null :
this.setState({ handleTekTekTek: 1 }, () => {
setTimeout(() => {
this.uploadTP('draft')
}, 100);
})
)
}
// onClick={() =>
// this.state.editable === true ?
// null : this.setState({ loading: true}, () =>
// this.state.handleTekTekTek == 1 ? null :
// this.setState({ handleTekTekTek: 1 }, () => {
// setTimeout(() => {
// this.uploadTP('draft')
// }, 100);
// })
// )
// }
onClick={() => this.state.editable === true ?
null
:
this.state.handleTekTekTek == 1 ? null :
this.setState({handleTekTekTek: 1, loading: true}, () => {
setTimeout(() => {
this.uploadTP('draft')
}, 100);
})}
>
<div style={{ backgroundColor: '#354960', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center' }}>
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save as Draft</Typography>
......@@ -5158,17 +5171,26 @@ export default class TaxPlanning extends Component {
borderColor: 'transparent',
outline: 'none',
}}
onClick={() =>
this.state.editable === true ?
null : this.setState({ loading: true}, () =>
this.state.handleTekTekTek == 1 ? null :
this.setState({ handleTekTekTek: 1 }, () => {
setTimeout(() => {
this.uploadTP('submitted')
}, 100);
})
)
}
// onClick={() =>
// this.state.editable === true ?
// null : this.setState({ loading: true}, () =>
// this.state.handleTekTekTek == 1 ? null :
// this.setState({ handleTekTekTek: 1 }, () => {
// setTimeout(() => {
// this.uploadTP('submitted')
// }, 100);
// })
// )
// }
onClick={() => this.state.editable === true ?
null
:
this.state.handleTekTekTek == 1 ? null :
this.setState({handleTekTekTek: 1, loading: true}, () => {
setTimeout(() => {
this.uploadTP('submitted')
}, 100);
})}
>
<div style={{ backgroundColor: '#354960', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center' }}>
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography>
......
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