Added cancellation reason to Members details

refs. https://github.com/TryGhost/Team/issues/780
This commit is contained in:
Peter Zimon 2021-06-15 13:30:56 +02:00
parent 65ed9cc69c
commit f4b660e40b
3 changed files with 11 additions and 0 deletions

View File

@ -158,6 +158,9 @@
<span class="gh-badge active">Active</span>
{{/if}}
</div>
{{#if sub.cancellationReason}}
<div class="gh-memberproduct-cancelreason"><span class="fw6">Cancellation reason:</span> {{sub.cancellationReason}}</div>
{{/if}}
<div class="gh-memberproduct-created">Created on {{sub.startDate}}</div>
<span class="action-menu">

View File

@ -52,6 +52,7 @@ export default class extends Component {
...sub,
startDate: sub.start_date ? moment(sub.start_date).format('D MMM YYYY') : '-',
validUntil: sub.current_period_end ? moment(sub.current_period_end).format('D MMM YYYY') : '-',
cancellationReason: sub.cancellation_reason,
price: {
...sub.price,
currencySymbol: getSymbol(sub.price.currency),

View File

@ -1674,6 +1674,7 @@ p.gh-members-import-errordetail:first-of-type {
.gh-memberproduct-created {
margin-top: 1px;
color: var(--midgrey);
}
.gh-memberproduct-archived .gh-memberproduct-name {
@ -1697,6 +1698,12 @@ p.gh-members-import-errordetail:first-of-type {
padding-top: 12px;
}
.gh-memberproduct-cancelreason {
line-height: 1.45em;
margin: 3px 0 5px;
max-width: 700px;
}
.gh-btn-addproduct svg path {
fill: var(--green);
stroke: none !important;