mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Removed Archived Tiers from Portal settings
refs https://github.com/TryGhost/Team/issues/1252 Archived Tiers are no longer able to be signed up to, and should not be shown in Portal
This commit is contained in:
parent
065cac4914
commit
9c139a78e4
@ -72,7 +72,7 @@ export default ModalComponent.extend({
|
||||
return (this.membersUtils.isStripeEnabled && allowedPlans.includes('yearly'));
|
||||
}),
|
||||
products: computed('model.products.[]', 'settings.portalProducts.[]', 'isPreloading', function () {
|
||||
const paidProducts = this.model.products?.filter(product => product.type === 'paid');
|
||||
const paidProducts = this.model.products?.filter(product => product.type === 'paid' && product.active === true);
|
||||
if (this.isPreloading || !paidProducts?.length) {
|
||||
return [];
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ export default Model.extend(ValidationEngine, {
|
||||
|
||||
name: attr('string'),
|
||||
description: attr('string'),
|
||||
active: attr('boolean'),
|
||||
slug: attr('string'),
|
||||
type: attr('string', {defaultValue: 'paid'}),
|
||||
monthlyPrice: attr('stripe-price'),
|
||||
|
Loading…
Reference in New Issue
Block a user