Commit 71684786 authored by Riri Novita's avatar Riri Novita

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into riri

parents 7236b2ae e788f6db
...@@ -973,7 +973,7 @@ export default class ApprovalMatrix extends Component { ...@@ -973,7 +973,7 @@ export default class ApprovalMatrix extends Component {
}} }}
// onUpload={() => this.setState({ visibleUpload: false, visibleAM: false })} // onUpload={() => this.setState({ visibleUpload: false, visibleAM: false })}
onUpload={() => { onUpload={() => {
this.state.judul === "APPROVAL MATRIX" ? String(this.state.judul).includes("APPROVAL MATRIX") ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' }) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}} }}
......
...@@ -1074,7 +1074,7 @@ export default class Parameter extends Component { ...@@ -1074,7 +1074,7 @@ export default class Parameter extends Component {
this.setState({ uploadStatus: 'idle', percentage: '0' }) this.setState({ uploadStatus: 'idle', percentage: '0' })
}} }}
onUpload={() => { onUpload={() => {
this.state.judul === "MASTER DATA - PARAMETER" ? String(this.state.judul).includes("MASTER DATA - PARAMETER") ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' }) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}} }}
......
...@@ -923,7 +923,7 @@ export default class Perusahaan extends Component { ...@@ -923,7 +923,7 @@ export default class Perusahaan extends Component {
this.setState({ uploadStatus: 'idle', percentage: '0' }) this.setState({ uploadStatus: 'idle', percentage: '0' })
}} }}
onUpload={() => { onUpload={() => {
this.state.judul === "MASTER DATA - COMPANY" ? String(this.state.judul).includes("MASTER DATA - COMPANY") ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning'}) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning'})
}} }}
......
...@@ -1275,7 +1275,7 @@ export default class ReportItems extends Component { ...@@ -1275,7 +1275,7 @@ export default class ReportItems extends Component {
this.setState({ uploadStatus: 'idle', percentage: '0' }) this.setState({ uploadStatus: 'idle', percentage: '0' })
}} }}
onUpload={() => { onUpload={() => {
this.state.judul === "MASTER DATA - REPORT ITEMS" && !this.state.invalidTemplate ? String(this.state.judul).includes("MASTER DATA - REPORT ITEMS") && !this.state.invalidTemplate ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' }) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}} }}
......
...@@ -798,7 +798,7 @@ export default class UnitBisnis extends Component { ...@@ -798,7 +798,7 @@ export default class UnitBisnis extends Component {
this.setState({ uploadStatus: 'idle', percentage: '0' }) this.setState({ uploadStatus: 'idle', percentage: '0' })
}} }}
onUpload={() => { onUpload={() => {
this.state.judul === "MASTER DATA - BUSINESS UNIT" ? String(this.state.judul).includes("MASTER DATA - BUSINESS UNIT") ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' }) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}} }}
......
...@@ -986,7 +986,7 @@ export default class UserRole extends Component { ...@@ -986,7 +986,7 @@ export default class UserRole extends Component {
this.setState({ uploadStatus: 'idle', percentage: '0' }) this.setState({ uploadStatus: 'idle', percentage: '0' })
}} }}
onUpload={() => { onUpload={() => {
this.state.judul === 'MASTER DATA - USER' ? String(this.state.judul).includes("MASTER DATA - USER") ?
this.checkUpload() : this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' }) this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}} }}
......
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