🐛 Fixed ability to cancel Stripe subscriptio when deleting member

fixes https://github.com/TryGhost/Team/issues/2670

"Also cancel subscription in Stripe" checkbox was not showing up when deleting a member with active subscriptions.
This commit is contained in:
Simon Backx 2023-03-07 10:38:04 +01:00
parent 6d4dcdf45d
commit 4147663cde
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
class="gh-input"
type="checkbox"
checked={{this.shouldCancelSubscriptions}}
{{on "click" (toggle "toggleShouldCancelSubscriptions" this)}}
{{on "click" (toggle "shouldCancelSubscriptions" this)}}
/>
<span class="input-toggle-component"></span>
<div>
@ -47,4 +47,4 @@
data-test-button="confirm"
/>
</div>
</div>
</div>

View File

@ -12,7 +12,7 @@ export default class DeleteMemberModal extends Component {
return this.args.data.member;
}
get hasActiveStripeMigrations() {
get hasActiveStripeSubscriptions() {
const subscriptions = this.member.get('subscriptions');
if (!subscriptions || subscriptions.length === 0) {