Commit 1281c5dc authored by syadziy's avatar syadziy

update fixing UAT

parent eaebc519
...@@ -191,7 +191,7 @@ export default class CarfmDocument extends Component { ...@@ -191,7 +191,7 @@ export default class CarfmDocument extends Component {
if (response.ok) { if (response.ok) {
if (response.data.message === "Data was Saved Successfully") { if (response.data.message === "Data was Saved Successfully") {
this.setState({ visibleCreate: false, loading: false, alert: true, messageAlert: response.data.message, tipeAlert: 'success'}) this.setState({ visibleCreate: false, loading: false, alert: true, messageAlert: response.data.message, tipeAlert: 'success'})
this.getDataCarfm('create') // this.getDataCarfm('create')
} }
else { else {
this.setState({ visibleCreate: false, alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => { this.setState({ visibleCreate: false, alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
......
...@@ -233,7 +233,7 @@ export default class CreateCarfmDoc extends Component { ...@@ -233,7 +233,7 @@ export default class CreateCarfmDoc extends Component {
} }
else if (R.isNil(this.state.file)) { else if (R.isNil(this.state.file)) {
this.setState({ alert: true, messageAlert: 'File Cannot be Empty', tipeAlert: 'warning', saveDisable: false }) this.setState({ alert: true, messageAlert: 'File Cannot be Empty', tipeAlert: 'warning', saveDisable: false })
} else if(this.state.submitVal === 1) { } else {
const formData = new FormData(); const formData = new FormData();
formData.append("file", this.state.file); formData.append("file", this.state.file);
formData.append("companyId", this.state.getPerusahaan.company_id); formData.append("companyId", this.state.getPerusahaan.company_id);
...@@ -310,13 +310,12 @@ export default class CreateCarfmDoc extends Component { ...@@ -310,13 +310,12 @@ export default class CreateCarfmDoc extends Component {
</div> </div>
<div className="column-2"> <div className="column-2">
<div style={{ padding: 10, borderRadius: 5, marginTop: "1.2em" }}> <div style={{ padding: 10, borderRadius: 5, marginTop: "1.2em" }}>
<TextField <TextField
value={this.props.menuName} value={this.props.menuName}
InputProps={{ style: { fontSize: 11 } }} InputProps={{ style: { fontSize: 11 } }}
InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }} InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
placeholder="Category" placeholder="Category"
disabled
size="medium" size="medium"
fullWidth={true} fullWidth={true}
/> />
......
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