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
Refactor redirection on campaign creation
Kailash Nadh5662fac440df
diff --git a/frontend/my/src/Campaign.js b/frontend/my/src/Campaign.jsindex fb4d4088..baaa8b32 100644--- a/frontend/my/src/Campaign.js+++ b/frontend/my/src/Campaign.js@@ -229,7 +229,10 @@ class TheFormDef extends React.PureComponent {message: "Campaign created",description: `"${values["name"]}" created` })- this.props.route.history.push(cs.Routes.ViewCampaign.replace(":id", resp.data.data.id) + "#content")+ this.props.route.history.push({+ pathname: cs.Routes.ViewCampaign.replace(":id", resp.data.data.id),+ hash: "content-tab"+ })cb(true)}).catch(e => {notification["error"]({ placement: cs.MsgPosition, message: "Error", description: e.message })@@ -435,7 +438,7 @@ class Campaign extends React.PureComponent {}// Content tab?- if(document.location.hash === "#content") {+ if(document.location.hash === "#content-tab") {this.setCurrentTab("content")}}