Skip to content

Commit

Permalink
Fix: Billing switch (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikehrn authored Dec 2, 2024
1 parent 498fea4 commit 2d41213
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ const isSelectable = computed(() => {
return canUpgradeToPlan.value
})
const toggleEnabled = computed(() => {
return isSelectable.value && statusIsTrial.value
return statusIsTrial.value
? true
: canUpgradeToPlan.value && props.currentPlan?.name !== props.plan.name
: canUpgradeToPlan.value ||
(props.currentPlan?.name === props.plan.name &&
props.activeBillingInterval === BillingInterval.Monthly)
})
const buttonText = computed(() => {
// Trial plan case
Expand Down
2 changes: 0 additions & 2 deletions packages/server/modules/core/graph/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ export type AutomateFunctionTemplate = {
};

export enum AutomateFunctionTemplateLanguage {
Demonstration = 'DEMONSTRATION',
Demonstrationpython = 'DEMONSTRATIONPYTHON',
DotNet = 'DOT_NET',
Python = 'PYTHON',
Typescript = 'TYPESCRIPT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ export type AutomateFunctionTemplate = {
};

export enum AutomateFunctionTemplateLanguage {
Demonstration = 'DEMONSTRATION',
Demonstrationpython = 'DEMONSTRATIONPYTHON',
DotNet = 'DOT_NET',
Python = 'PYTHON',
Typescript = 'TYPESCRIPT'
Expand Down

0 comments on commit 2d41213

Please sign in to comment.