Added the clone modal that was accidentally removed

This commit is contained in:
Kailash Nadh 2018-10-26 12:24:51 +05:30
parent a1b5a39cfb
commit 0849dc491b

View file

@ -398,6 +398,19 @@ class Campaigns extends React.PureComponent {
}}
/>
}
{ this.state.record &&
<Modal visible={ this.state.record !== null } width="500px"
className="clone-campaign-modal"
title={ "Clone " + this.state.record.name}
okText="Clone"
confirmLoading={ this.state.modalWaiting }
onCancel={ this.handleToggleCloneForm }
onOk={() => { this.handleCloneCampaign({ ...this.state.record, name: this.state.cloneName }) }}>
<Input autoFocus defaultValue={ this.state.record.name } style={{ width: "100%" }} onChange={(e) => {
this.setState({ cloneName: e.target.value })
}} />
</Modal> }
</section>
)
}