fix: change tab to plans on click if manage plan button in current plan component
This commit is contained in:
parent
e3b4de0826
commit
6247294633
@ -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') }),
|
||||||
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user