Skip to content

Commit

Permalink
payments success state: add note about auto renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
paglias committed Mar 14, 2019
1 parent 0e6e7ad commit 994082a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/client/components/payments/successModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
span(v-html="$t(paymentData.newGroup ? 'groupPlanCreated' : 'groupPlanUpgraded', {groupName: paymentData.group.name})")
.details-block
span(v-html="$t('paymentSubBilling', {amount: groupPlanCost, months: paymentData.subscription.months})")
template(v-if="paymentData.paymentType === 'groupPlan' || paymentData.paymentType === 'subscription'")
span.small-text.auto-renew(v-once) {{ $t('paymentAutoRenew') }}
button.btn.btn-primary(@click='close()', v-once) {{$t('onwards')}}
</template>

Expand Down Expand Up @@ -116,6 +118,12 @@
}
}
}
.auto-renew {
margin-top: 16px;
color: $orange-10;
font-style: normal;
}
}
#payments-success-modal .modal-footer {
Expand Down
1 change: 1 addition & 0 deletions website/common/locales/en/npc.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"paymentYouSentGems": "You sent <strong><%= name %></strong>:",
"paymentYouSentSubscription": "You sent <strong><%= name %></strong> a <%= months %>-months Habitica subscription.",
"paymentSubBilling": "Your subscription will be billed <strong>$<%= amount %></strong> every <strong><%= months %> months</strong>.",
"paymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel this subscription, you can do so from your settings.",
"success": "Success!",

"classGear": "Class Gear",
Expand Down

0 comments on commit 994082a

Please sign in to comment.