High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Added the clone modal that was accidentally removed
Kailash Nadh0849dc491bb8
diff --git a/frontend/my/src/Campaigns.js b/frontend/my/src/Campaigns.jsindex 8bd2b5cc..e344ef33 100644--- a/frontend/my/src/Campaigns.js+++ b/frontend/my/src/Campaigns.js@@ -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>)}