fix: change tab to plans on click if manage plan button in current plan component

This commit is contained in:
Shariq Ansari 2024-10-28 13:01:02 +05:30
parent e3b4de0826
commit 6247294633

View File

@ -60,7 +60,7 @@ import {
activeSettingsPage, activeSettingsPage,
} from '@/composables/settings' } from '@/composables/settings'
import { Dialog, Plans, Billing } from 'frappe-ui' import { Dialog, Plans, Billing } from 'frappe-ui'
import { ref, markRaw, computed, watch } from 'vue' import { ref, markRaw, computed, watch, h } from 'vue'
const { isManager } = usersStore() const { isManager } = usersStore()
@ -95,7 +95,9 @@ const tabs = computed(() => {
{ {
label: 'Billing', label: 'Billing',
icon: WalletsIcon, icon: WalletsIcon,
component: markRaw(Billing), component: markRaw(
h(Billing, { onChangePlan: () => setActiveTab('Plans') }),
),
}, },
], ],
}, },