diff --git a/dashboard/components/pricing/PricingCardGeneric.vue b/dashboard/components/pricing/PricingCardGeneric.vue index 1305209..9f4d4e9 100644 --- a/dashboard/components/pricing/PricingCardGeneric.vue +++ b/dashboard/components/pricing/PricingCardGeneric.vue @@ -13,11 +13,11 @@ export type PricingCardProp = { planId: number } -const props = defineProps<{ datas: PricingCardProp[] }>(); +const props = defineProps<{ datas: PricingCardProp[], defaultIndex?: number }>(); const activeProject = useActiveProject(); -const currentIndex = ref(0); +const currentIndex = ref(props.defaultIndex || 0); const data = computed(() => { return props.datas[currentIndex.value]; @@ -37,13 +37,19 @@ async function onUpgradeClick() {