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
@@ -21,7 +21,6 @@ export function useAccount() {
const accountId = computed(() => {
return Number(route.params.accountId);
});
const currentAccount = computed(() => getAccountFn.value(accountId.value));
/**
@@ -34,9 +33,6 @@ export function useAccount() {
};
const isCloudFeatureEnabled = feature => {
// always return true if not on cloud
if (!isOnChatwootCloud.value) return true;
return isFeatureEnabledonAccount.value(currentAccount.value.id, feature);
};
@@ -55,5 +51,6 @@ export function useAccount() {
accountScopedUrl,
accountScopedRoute,
isCloudFeatureEnabled,
isOnChatwootCloud,
};
}