Fix title bug in list modal UI
This commit is contained in:
parent
022b35c4a7
commit
ab8bac226f
|
@ -93,6 +93,7 @@ class CreateFormDef extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
modalTitle(formType, record) {
|
modalTitle(formType, record) {
|
||||||
|
console.log(formType)
|
||||||
if (formType === cs.FormCreate) {
|
if (formType === cs.FormCreate) {
|
||||||
return "Create a list"
|
return "Create a list"
|
||||||
}
|
}
|
||||||
|
@ -131,7 +132,7 @@ class CreateFormDef extends React.PureComponent {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
visible={true}
|
visible={true}
|
||||||
title={this.modalTitle(this.state.form, record)}
|
title={this.modalTitle(formType, record)}
|
||||||
okText={this.state.form === cs.FormCreate ? "Create" : "Save"}
|
okText={this.state.form === cs.FormCreate ? "Create" : "Save"}
|
||||||
confirmLoading={this.state.modalWaiting}
|
confirmLoading={this.state.modalWaiting}
|
||||||
onCancel={onClose}
|
onCancel={onClose}
|
||||||
|
|
Loading…
Reference in New Issue