Commit 9570b8d2 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

send email reminder

See merge request !1701
parents 966163bd 6c172b97
...@@ -42,29 +42,29 @@ export default class TableProgressReport extends Component { ...@@ -42,29 +42,29 @@ export default class TableProgressReport extends Component {
"year": data.year, "year": data.year,
"month": data.reportType === 1 ? data.month : null "month": data.reportType === 1 ? data.month : null
} }
// api.create().sendEmail(payload).then(response => { api.create().sendEmail(payload).then(response => {
// if (response.data) { if (response.data) {
// if (response.ok) { if (response.ok) {
// if (response.data.status == 'success') { if (response.data.status == 'success') {
// this.getData() this.getData()
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' }) this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
// } else { } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => { this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
// if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) { if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) {
// setTimeout(() => { setTimeout(() => {
// localStorage.removeItem(Constant.TOKEN) localStorage.removeItem(Constant.TOKEN)
// window.location.reload(); window.location.reload();
// }, 1000); }, 1000);
// } }
// }) })
// } }
// } else { } else {
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error' }) this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error' })
// } }
// } else { } else {
// this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' }) this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
// } }
// }) })
} }
render() { render() {
......
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