diff --git a/apps/frontend/src/error.vue b/apps/frontend/src/error.vue index 8b28f35ea6..c431787539 100644 --- a/apps/frontend/src/error.vue +++ b/apps/frontend/src/error.vue @@ -77,6 +77,9 @@ const errorMessages = computed( const route = useRoute(); +// TODO: REMOVE BEFORE MERGE +console.log(props.error); + watch(route, () => { console.log(route); }); diff --git a/apps/frontend/src/pages/settings/billing/index.vue b/apps/frontend/src/pages/settings/billing/index.vue index 517a41c995..9200e93940 100644 --- a/apps/frontend/src/pages/settings/billing/index.vue +++ b/apps/frontend/src/pages/settings/billing/index.vue @@ -353,6 +353,21 @@ Upgrade + + + + midasCharge.value?.subscription_interval === "yearly" ? "monthly" : "yearly", ); +async function showPyroIntervalChange(subscription) { + currentSubscription.value = subscription; + currentSubRenewalDate.value = getPyroCharge(subscription).due; + currentProduct.value = getPyroProduct(subscription); + + upgradeProducts.value = [currentProduct.value]; + upgradeProducts.value.metadata = { type: "pyro" }; + + await nextTick(); + pyroIntervalModal.value.show(); +} + async function switchMidasInterval(interval) { changingInterval.value = true; startLoading(); @@ -941,6 +993,7 @@ const getProductPrice = (product, interval) => { const modalCancel = ref(null); const pyroPurchaseModal = ref(); +const pyroIntervalModal = ref(); const currentSubscription = ref(null); const currentProduct = ref(null); const upgradeProducts = ref([]); diff --git a/packages/ui/src/components/billing/PurchaseModal.vue b/packages/ui/src/components/billing/PurchaseModal.vue index 7b216b9a6d..e04fe3d66e 100644 --- a/packages/ui/src/components/billing/PurchaseModal.vue +++ b/packages/ui/src/components/billing/PurchaseModal.vue @@ -2,7 +2,8 @@