mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05: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
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
class="gh-input"
|
class="gh-input"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={{this.shouldCancelSubscriptions}}
|
checked={{this.shouldCancelSubscriptions}}
|
||||||
{{on "click" (toggle "toggleShouldCancelSubscriptions" this)}}
|
{{on "click" (toggle "shouldCancelSubscriptions" this)}}
|
||||||
/>
|
/>
|
||||||
<span class="input-toggle-component"></span>
|
<span class="input-toggle-component"></span>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default class DeleteMemberModal extends Component {
|
||||||
return this.args.data.member;
|
return this.args.data.member;
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasActiveStripeMigrations() {
|
get hasActiveStripeSubscriptions() {
|
||||||
const subscriptions = this.member.get('subscriptions');
|
const subscriptions = this.member.get('subscriptions');
|
||||||
|
|
||||||
if (!subscriptions || subscriptions.length === 0) {
|
if (!subscriptions || subscriptions.length === 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue