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', {
|
this.tier.set('monthlyPrice', {
|
||||||
nickname: 'Monthly',
|
nickname: 'Monthly',
|
||||||
amount: 500,
|
amount: 500,
|
||||||
active: 1,
|
active: true,
|
||||||
description: 'Full access',
|
description: 'Full access',
|
||||||
currency: 'usd',
|
currency: 'usd',
|
||||||
interval: 'month',
|
interval: 'month',
|
||||||
|
@ -178,7 +178,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
|
||||||
this.tier.set('yearlyPrice', {
|
this.tier.set('yearlyPrice', {
|
||||||
nickname: 'Yearly',
|
nickname: 'Yearly',
|
||||||
amount: 5000,
|
amount: 5000,
|
||||||
active: 1,
|
active: true,
|
||||||
currency: 'usd',
|
currency: 'usd',
|
||||||
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
||||||
interval: 'year',
|
interval: 'year',
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
|
||||||
const monthlyPrice = {
|
const monthlyPrice = {
|
||||||
nickname: 'Monthly',
|
nickname: 'Monthly',
|
||||||
amount: monthlyAmount,
|
amount: monthlyAmount,
|
||||||
active: 1,
|
active: true,
|
||||||
currency: currency,
|
currency: currency,
|
||||||
interval: 'month',
|
interval: 'month',
|
||||||
type: 'recurring'
|
type: 'recurring'
|
||||||
|
@ -33,7 +33,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
|
||||||
const yearlyPrice = {
|
const yearlyPrice = {
|
||||||
nickname: 'Yearly',
|
nickname: 'Yearly',
|
||||||
amount: yearlyAmount,
|
amount: yearlyAmount,
|
||||||
active: 1,
|
active: true,
|
||||||
currency: currency,
|
currency: currency,
|
||||||
interval: 'year',
|
interval: 'year',
|
||||||
type: 'recurring'
|
type: 'recurring'
|
||||||
|
|
|
@ -258,7 +258,7 @@ export default Component.extend({
|
||||||
this.tier.set('monthlyPrice', {
|
this.tier.set('monthlyPrice', {
|
||||||
nickname: 'Monthly',
|
nickname: 'Monthly',
|
||||||
amount: 500,
|
amount: 500,
|
||||||
active: 1,
|
active: true,
|
||||||
description: 'Full access',
|
description: 'Full access',
|
||||||
currency: 'usd',
|
currency: 'usd',
|
||||||
interval: 'month',
|
interval: 'month',
|
||||||
|
@ -267,7 +267,7 @@ export default Component.extend({
|
||||||
this.tier.set('yearlyPrice', {
|
this.tier.set('yearlyPrice', {
|
||||||
nickname: 'Yearly',
|
nickname: 'Yearly',
|
||||||
amount: 5000,
|
amount: 5000,
|
||||||
active: 1,
|
active: true,
|
||||||
currency: 'usd',
|
currency: 'usd',
|
||||||
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
|
||||||
interval: 'year',
|
interval: 'year',
|
||||||
|
|
Loading…
Add table
Reference in a new issue