mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
Updated tier price to use boolean for active
This commit is contained in:
parent
dd3d84a8a5
commit
704310ba20
3 changed files with 6 additions and 6 deletions
|
@ -169,7 +169,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
|
|||
this.tier.set('monthlyPrice', {
|
||||
nickname: 'Monthly',
|
||||
amount: 500,
|
||||
active: 1,
|
||||
active: true,
|
||||
description: 'Full access',
|
||||
currency: 'usd',
|
||||
interval: 'month',
|
||||
|
@ -178,7 +178,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
|
|||
this.tier.set('yearlyPrice', {
|
||||
nickname: 'Yearly',
|
||||
amount: 5000,
|
||||
active: 1,
|
||||
active: true,
|
||||
currency: 'usd',
|
||||
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
||||
interval: 'year',
|
||||
|
|
|
@ -25,7 +25,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
|
|||
const monthlyPrice = {
|
||||
nickname: 'Monthly',
|
||||
amount: monthlyAmount,
|
||||
active: 1,
|
||||
active: true,
|
||||
currency: currency,
|
||||
interval: 'month',
|
||||
type: 'recurring'
|
||||
|
@ -33,7 +33,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
|
|||
const yearlyPrice = {
|
||||
nickname: 'Yearly',
|
||||
amount: yearlyAmount,
|
||||
active: 1,
|
||||
active: true,
|
||||
currency: currency,
|
||||
interval: 'year',
|
||||
type: 'recurring'
|
||||
|
|
|
@ -258,7 +258,7 @@ export default Component.extend({
|
|||
this.tier.set('monthlyPrice', {
|
||||
nickname: 'Monthly',
|
||||
amount: 500,
|
||||
active: 1,
|
||||
active: true,
|
||||
description: 'Full access',
|
||||
currency: 'usd',
|
||||
interval: 'month',
|
||||
|
@ -267,7 +267,7 @@ export default Component.extend({
|
|||
this.tier.set('yearlyPrice', {
|
||||
nickname: 'Yearly',
|
||||
amount: 5000,
|
||||
active: 1,
|
||||
active: true,
|
||||
currency: 'usd',
|
||||
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
||||
interval: 'year',
|
||||
|
|
Loading…
Add table
Reference in a new issue