From 62472946333ba5b91ed806c7de245208db2a4744 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 28 Oct 2024 13:01:02 +0530 Subject: [PATCH] fix: change tab to plans on click if manage plan button in current plan component --- frontend/src/components/Settings/Settings.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index fa02fb1d..145d49b5 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -60,7 +60,7 @@ import { activeSettingsPage, } from '@/composables/settings' 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() @@ -95,7 +95,9 @@ const tabs = computed(() => { { label: 'Billing', icon: WalletsIcon, - component: markRaw(Billing), + component: markRaw( + h(Billing, { onChangePlan: () => setActiveTab('Plans') }), + ), }, ], },