mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
✨ Added cancellation reason to Members UI (#1782)
refs https://github.com/TryGhost/Ghost/issues/12403 This is only displayed when it is present, so as not to clutter the UI unless it's required.
This commit is contained in:
parent
50a423ed2b
commit
9cd6ed06a7
@ -172,6 +172,14 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{{#if subscription.cancellationReason}}
|
||||||
|
<tr>
|
||||||
|
<td class="gh-member-stripe-label">Cancellation reason</td>
|
||||||
|
<td class="gh-member-stripe-data">
|
||||||
|
<span class="gh-member-stripe-cancellation-reason">{{subscription.cancellationReason}}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="gh-member-stripe-label">Next renewal date</td>
|
<td class="gh-member-stripe-label">Next renewal date</td>
|
||||||
<td class="gh-member-stripe-data">
|
<td class="gh-member-stripe-data">
|
||||||
|
@ -45,6 +45,7 @@ export default Component.extend({
|
|||||||
plan: subscription.plan,
|
plan: subscription.plan,
|
||||||
amount: parseInt(subscription.plan.amount) ? (subscription.plan.amount / 100) : 0,
|
amount: parseInt(subscription.plan.amount) ? (subscription.plan.amount / 100) : 0,
|
||||||
cancelAtPeriodEnd: subscription.cancel_at_period_end,
|
cancelAtPeriodEnd: subscription.cancel_at_period_end,
|
||||||
|
cancellationReason: subscription.cancellation_reason,
|
||||||
validUntil: subscription.current_period_end ? moment(subscription.current_period_end).format('D MMM YYYY') : '-'
|
validUntil: subscription.current_period_end ? moment(subscription.current_period_end).format('D MMM YYYY') : '-'
|
||||||
};
|
};
|
||||||
}).reverse();
|
}).reverse();
|
||||||
|
Loading…
Reference in New Issue
Block a user