mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 Fixed deleting members to prompt cancellation (#1869)
closes https://github.com/TryGhost/Team/issues/546 Since https://github.com/TryGhost/Ghost/commit/26ee6483 and https://github.com/TryGhost/Admin/commit/fbd42ef3 member subscriptions have not been on the `stripe` property. This meant that all members were considered to not have subscriptions, and so the modal would not display to option to cancel subscriptions.
This commit is contained in:
parent
eec670a859
commit
6d324e31f1
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export default ModalComponent.extend({
|
||||||
cancelSubscriptions: reads('shouldCancelSubscriptions'),
|
cancelSubscriptions: reads('shouldCancelSubscriptions'),
|
||||||
|
|
||||||
hasActiveStripeSubscriptions: computed('member', function () {
|
hasActiveStripeSubscriptions: computed('member', function () {
|
||||||
let subscriptions = this.member.get('stripe');
|
let subscriptions = this.member.get('subscriptions');
|
||||||
|
|
||||||
if (!subscriptions || subscriptions.length === 0) {
|
if (!subscriptions || subscriptions.length === 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue