Commit 76dc462b authored by Riri Novita's avatar Riri Novita

Merge branch 'riri' into 'master'

apdet

See merge request !871
parents a8ff0f7c 882994d3
......@@ -24,7 +24,7 @@ const create = (type = "") => {
'Content-Type': 'application/json',
},
// 60 second timeout...
timeout: 60000
timeout: 120000
})
break;
case 'UPLOAD':
......@@ -38,7 +38,7 @@ const create = (type = "") => {
'Content-Type': 'application/json',
},
// 40 second timeout...
timeout: 60000
timeout: 120000
})
break;
default:
......
......@@ -608,15 +608,14 @@ export default class ProfitLossMR extends Component {
}
// console.log(JSON.stringify(payload));
api.create().validateSubmitReportPL(payload).then((response) => {
// console.log(response.data.data.result)
// console.log(err);
console.log(response.data.data.result)
console.log(err);
if (response.data) {
if (response.data.status === "success") {
if (response.data.data.result && err === false) {
this.setState({ loading: false, buttonError: false, editable: false, saveDraft: false })
} else {
this.setState({ loading: false, buttonError: true, editable: true, saveDraft: false })
this.setState({ loading: false, buttonError: true, editable: true, saveDraft: true })
}
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
......
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