Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

feat: integrate upgrade dialog into account billing plan change button

Paulo Castellanod529a21617d7
diff --git a/resources/js/pages/settings/account/Billing.vue b/resources/js/pages/settings/account/Billing.vue
index de434daaf..fd3dfcf87 100644
--- a/resources/js/pages/settings/account/Billing.vue
+++ b/resources/js/pages/settings/account/Billing.vue
@@ -7,6 +7,7 @@ import { computed } from 'vue';
import SettingsTabsNav from '@/components/settings/SettingsTabsNav.vue';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
+import { useUpgradeDialog } from '@/composables/useUpgradeDialog';
import AppLayout from '@/layouts/AppLayout.vue';
import { settings as settingsHub } from '@/routes/app';
import { edit as accountEdit } from '@/routes/app/account';
@@ -66,6 +67,8 @@ const monthlyPrice = (slug: string | undefined): string => {
if (! slug) return 'Free';
return trans(`billing.subscribe.prices.${slug}.monthly`);
};
+
+const { openUpgrade } = useUpgradeDialog();
</script>
<template>
@@ -86,6 +89,7 @@ const monthlyPrice = (slug: string | undefined): string => {
variant="outline"
size="sm"
class="mt-4"
+ @click="openUpgrade()"
>
{{ $t('billing.plan.change') }}
</Button>