feat: update paywall

Align it with SLA
This commit is contained in:
Shivam Mishra
2025-01-23 17:57:55 +05:30
parent fb0ab150a5
commit 2f4bf9d009
3 changed files with 20 additions and 7 deletions
@@ -1,12 +1,22 @@
<script setup>
import { computed } from 'vue';
import { useRouter } from 'vue-router';
import { useMapGetter } from 'dashboard/composables/store';
import { useAccount } from 'dashboard/composables/useAccount';
import BasePaywallModal from 'dashboard/routes/dashboard/settings/components/BasePaywallModal.vue';
const router = useRouter();
const { accountId } = useAccount();
const currentUser = useMapGetter('getCurrentUser');
const isSuperAdmin = computed(() => {
return currentUser.value.type === 'SuperAdmin';
});
const { accountId, isOnChatwootCloud } = useAccount();
const i18nKey = computed(() =>
isOnChatwootCloud.value ? 'PAYWALL' : 'ENTERPRISE_PAYWALL'
);
const openBilling = () => {
router.push({
name: 'billing_settings_index',
@@ -22,8 +32,9 @@ const openBilling = () => {
<BasePaywallModal
class="mx-auto"
feature-prefix="CAPTAIN"
i18n-key="PAYWALL"
is-on-chatwoot-cloud
:i18n-key="i18nKey"
:is-super-admin="isSuperAdmin"
:is-on-chatwoot-cloud="isOnChatwootCloud"
@upgrade="openBilling"
/>
</div>