mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
🐛 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:
parent
6d4dcdf45d
commit
4147663cde
@ -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>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user