Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
9570b8d2
Commit
9570b8d2
authored
Feb 16, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
send email reminder See merge request
!1701
parents
966163bd
6c172b97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
TableProgressReport.js
src/container/ProgressReport/TableProgressReport.js
+23
-23
No files found.
src/container/ProgressReport/TableProgressReport.js
View file @
9570b8d2
...
...
@@ -42,29 +42,29 @@ export default class TableProgressReport extends Component {
"year": data.year,
"month": data.reportType === 1 ? data.month : null
}
//
api.create().sendEmail(payload).then(response => {
//
if (response.data) {
//
if (response.ok) {
//
if (response.data.status == 'success') {
//
this.getData()
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
//
} else {
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
//
if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) {
//
setTimeout(() => {
//
localStorage.removeItem(Constant.TOKEN)
//
window.location.reload();
//
}, 1000);
//
}
//
})
//
}
//
} else {
//
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error' })
//
}
//
} else {
//
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
//
}
//
})
api.create().sendEmail(payload).then(response => {
if (response.data) {
if (response.ok) {
if (response.data.status == 'success') {
this.getData()
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) {
setTimeout(() => {
localStorage.removeItem(Constant.TOKEN)
window.location.reload();
}, 1000);
}
})
}
} else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'error' })
}
} else {
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
}
})
}
render() {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment