From 56fbe200e049465f19331fe85b34fbfeba87b6ed Mon Sep 17 00:00:00 2001 From: ben-pr-p Date: Thu, 31 Jan 2019 18:38:08 -0500 Subject: [PATCH] add campaign copy feedback --- src/containers/AdminCampaignStats.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/containers/AdminCampaignStats.jsx b/src/containers/AdminCampaignStats.jsx index 983dd35ca..eac3d4fa7 100644 --- a/src/containers/AdminCampaignStats.jsx +++ b/src/containers/AdminCampaignStats.jsx @@ -216,7 +216,10 @@ class AdminCampaignStats extends React.Component { await this.props.mutations.copyCampaign(this.props.params.campaignId)} + onTouchTap={async() => { + await this.props.mutations.copyCampaign(this.props.params.campaignId) + this.setState({ campaignJustCopied: true }) + }} />) ] : null} @@ -258,6 +261,14 @@ class AdminCampaignStats extends React.Component { this.setState({ exportMessageOpen: false }) }} /> + { + this.setState({ campaignJustCopied: false }) + }} + /> ) }