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