remove the billing config to render v2
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { useMapGetter } from 'dashboard/composables/store.js';
|
||||
import Index from './Index.vue';
|
||||
import IndexV2 from '../billing-v2/IndexV2.vue';
|
||||
|
||||
const isStripeBillingV2Enabled = useMapGetter(
|
||||
'globalConfig/isStripeBillingV2Enabled'
|
||||
);
|
||||
|
||||
const currentComponent = computed(() => {
|
||||
return isStripeBillingV2Enabled.value ? IndexV2 : Index;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<component :is="currentComponent" />
|
||||
<IndexV2 />
|
||||
</template>
|
||||
|
||||
@@ -18,7 +18,6 @@ const {
|
||||
LOGO_DARK: logoDark,
|
||||
PRIVACY_URL: privacyURL,
|
||||
IS_ENTERPRISE: isEnterprise,
|
||||
STRIPE_BILLING_V2_ENABLED: stripeBillingV2Enabled,
|
||||
TERMS_URL: termsURL,
|
||||
WIDGET_BRAND_URL: widgetBrandURL,
|
||||
DISABLE_USER_PROFILE_UPDATE: disableUserProfileUpdate,
|
||||
@@ -47,7 +46,6 @@ const state = {
|
||||
termsURL,
|
||||
widgetBrandURL,
|
||||
isEnterprise: parseBoolean(isEnterprise),
|
||||
stripeBillingV2Enabled: parseBoolean(stripeBillingV2Enabled),
|
||||
};
|
||||
|
||||
export const getters = {
|
||||
@@ -55,7 +53,6 @@ export const getters = {
|
||||
isOnChatwootCloud: $state => $state.deploymentEnv === 'cloud',
|
||||
isACustomBrandedInstance: $state => $state.installationName !== 'Chatwoot',
|
||||
isAChatwootInstance: $state => $state.installationName === 'Chatwoot',
|
||||
isStripeBillingV2Enabled: $state => $state.stripeBillingV2Enabled,
|
||||
};
|
||||
|
||||
export const actions = {};
|
||||
|
||||
Reference in New Issue
Block a user