diff --git a/frontend/src/pages/Deal.vue b/frontend/src/pages/Deal.vue
index 7ea89b65..95caf0c4 100644
--- a/frontend/src/pages/Deal.vue
+++ b/frontend/src/pages/Deal.vue
@@ -36,7 +36,7 @@
-
+
{
return items
})
-const tabIndex = ref(0)
const tabs = computed(() => {
let tabOptions = [
{
@@ -476,6 +476,7 @@ const tabs = computed(() => {
]
return tabOptions.filter((tab) => (tab.condition ? tab.condition() : true))
})
+const { tabIndex } = useActiveTabManager(tabs, 'lastDealTab')
const fieldsLayout = createResource({
url: 'crm.api.doc.get_sidebar_fields',
diff --git a/frontend/src/pages/MobileLead.vue b/frontend/src/pages/MobileLead.vue
index 3ed477bb..47e045d2 100644
--- a/frontend/src/pages/MobileLead.vue
+++ b/frontend/src/pages/MobileLead.vue
@@ -89,7 +89,6 @@
{
return items
})
-const tabIndex = ref(0)
-
const tabs = computed(() => {
let tabOptions = [
{
@@ -388,6 +386,7 @@ const tabs = computed(() => {
]
return tabOptions.filter((tab) => (tab.condition ? tab.condition() : true))
})
+const { tabIndex } = useActiveTabManager(tabs, 'lastLeadTab')
watch(tabs, (value) => {
if (value && route.params.tabName) {