@@ -395,7 +395,7 @@
{{/if}}
{{/if}}
-
Created on {{sub.startDate}}
+
Created on {{sub.startDate}}
{{#if (and sub.attribution sub.attribution.url sub.attribution.title) }}
ยท
Subscribed on {{ sub.attribution.title }}
diff --git a/ghost/admin/app/components/gh-member-settings-form.js b/ghost/admin/app/components/gh-member-settings-form.js
index 1358d21255..b4fb416824 100644
--- a/ghost/admin/app/components/gh-member-settings-form.js
+++ b/ghost/admin/app/components/gh-member-settings-form.js
@@ -23,6 +23,7 @@ export default class extends Component {
@tracked showMemberTierModal = false;
@tracked tiersList;
@tracked newslettersList;
+ @tracked isSubscriptionExpanded = {};
get isAddComplimentaryAllowed() {
if (!this.membersUtils.paidMembersEnabled) {
@@ -98,7 +99,7 @@ export default class extends Component {
if (!sub.id && this.feature.get('compExpiring') && sub.tier?.expiry_at) {
data.compExpiry = moment(sub.tier.expiry_at).format('D MMM YYYY');
}
-
+ data.showDetails = !!this.isSubscriptionExpanded[sub.id];
return data;
});
return tiers.map((tier) => {
@@ -135,6 +136,14 @@ export default class extends Component {
}
}
+ @action
+ toggleSubscriptionExpanded(subId) {
+ this.isSubscriptionExpanded = {
+ ...this.isSubscriptionExpanded,
+ [subId]: !this.isSubscriptionExpanded[subId]
+ };
+ }
+
@action
setup() {
this.fetchTiers.perform();