Added the clone modal that was accidentally removed
This commit is contained in:
parent
a1b5a39cfb
commit
0849dc491b
1 changed files with 13 additions and 0 deletions
|
@ -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>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue