File tree Expand file tree Collapse file tree
routes/(console)/organization-[organization]/change-plan Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 function shouldShowTooltip(plan : Models .BillingPlan ) {
2828 if (plan .group !== BillingPlanGroup .Starter ) return true ;
29- else return ! anyOrgFree ;
29+ if (! anyOrgFree ) return true ;
30+ // Hide only when upgrading from Free (current org on Free, user selected Pro)
31+ if ($organization ?.billingPlanId === plan .$id && selectedPlan !== plan .$id ) return true ;
32+ return false ;
3033 }
3134
3235 function shouldDisable(plan : Models .BillingPlan ) {
4548 name =" plan"
4649 bind:group ={selectedPlan }
4750 disabled ={! selfService || shouldDisable (plan )}
48- tooltipShow ={shouldDisable (plan )}
4951 value ={plan .$id }
5052 title ={plan .name }>
5153 <svelte:fragment slot =" action" >
Original file line number Diff line number Diff line change 486486 bind:couponData ={selectedCoupon }
487487 bind:billingBudget
488488 organizationId ={data .organization .$id } />
489- {:else if ! data . organization . billingPlanDetails . selfService }
489+ {:else if isSelfService }
490490 <PlanComparisonBox downgrade ={data .hasFreeOrgs ? false : isDowngrade } />
491491 {/if }
492492 </svelte:fragment >
You can’t perform that action at this time.
0 commit comments