Commit 5ebe8fad authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-' into 'master'

ganti checkapprover

See merge request !731
parents 5914325e db263a80
......@@ -214,6 +214,7 @@ export default class OutlookPA extends Component {
getDetailUser() {
let userId = localStorage.getItem(Constant.USER)
api.create().getDetailUser(userId).then((response) => {
// console.log(response);
if (response.data) {
if (response.ok) {
if (response.data.status === 'success') {
......@@ -379,7 +380,7 @@ export default class OutlookPA extends Component {
// console.log(this.state.lastStatus);
this.historyApproval()
this.getLatestPeriodSubmit()
api.create().checkApprover().then(response => {
api.create().checkApproverOLPA().then(response => {
// console.log(response);
if (response.data.data.is_approver === true) {
this.setState({ isApprover: true, checkApprover: true })
......@@ -896,6 +897,7 @@ export default class OutlookPA extends Component {
{...this.state.listPeriode}
id="periode"
onChange={(event, newInputValue) => this.setState({ periode: newInputValue }, () => {
// console.log(this.state.isApprover, this.state.company);
if (this.state.isApprover === true) {
this.getCompanySubmitted()
} else {
......
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