Skip to content

Commit

Permalink
Merge pull request #2533 from kiva/ML2-150-team-join-copy
Browse files Browse the repository at this point in the history
Update team join form copy and opt-out button with campaign name.
  • Loading branch information
mcstover authored Jan 18, 2021
2 parents 7364a9d + 272a52c commit 16ba197
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/components/CorporateCampaign/CampaignJoinTeamForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
@lightbox-closed="handleLightboxClosed"
>
<div v-if="showForm" class="text-center">
<h2>
You're invited to the {{ teamName }} team!
</h2>
<p>
By joining the team, you can see your impact, interact with teammates, and get more out of Kiva.
Join our community of 2M Kiva lenders who are doing good every day.
Lending Teams like {{ teamName }} and their members have helped over
3.8M borrowers build a better future for themselves and their families.
</p>
<p v-if="showError" class="error">
Oh no! Something went wrong! Please try to join this team later.
Expand All @@ -38,11 +37,11 @@
<div slot="controls" class="text-center">
<div v-if="showForm">
<kv-button class="smaller" @click.native.prevent="handleJoinTeam">
Join Team
Continue
</kv-button>
<br><br>
<kv-button class="text-link" @click.native.prevent="handleRejectTeam">
No Thanks
Opt-out of {{ campaignNameText }} lending team
</kv-button>
</div>
<div v-if="showSuccess || showError">
Expand Down Expand Up @@ -80,6 +79,10 @@ export default {
teamId: {
type: Number,
default: null
},
campaignName: {
type: String,
default: null
}
},
data() {
Expand All @@ -95,6 +98,11 @@ export default {
myTeams: () => [],
};
},
computed: {
campaignNameText() {
return this.campaignName ? `the ${this.campaignName}` : 'this';
}
},
mounted() {
this.loading = true;
if (this.teamId) {
Expand Down
1 change: 1 addition & 0 deletions src/pages/LandingPages/CorporateCampaign/CCLandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@

<campaign-join-team-form
v-if="this.showTeamForm"
:campaign-name="campaignPartnerName"
:team-id="this.teamId"
:promo-id="this.promoFundId"
@team-process-complete="handleTeamJoinProcess"
Expand Down

0 comments on commit 16ba197

Please sign in to comment.