fix: some navigation issue adn oss missing changes

This commit is contained in:
Ramesh Mane
2026-03-04 14:42:39 +00:00
parent 290741f230
commit 06b453baa8
11 changed files with 243 additions and 128 deletions

View File

@@ -119,13 +119,17 @@ const mainItems = computed<NavItem[]>(() => [
disabled: !hasAvailableBases.value,
onClick: () => onTabClick('data'),
},
{
key: 'automations',
icon: 'ncAutomation',
label: 'Automations',
disabled: !hasAvailableBases.value,
onClick: () => onTabClick('automations'),
},
...(isEeUI
? [
{
key: 'automations',
icon: 'ncAutomation',
label: 'Automations',
disabled: !hasAvailableBases.value,
onClick: () => onTabClick('automations'),
},
]
: []),
{ key: 'divider', icon: '', label: '' },
{ key: 'settings', icon: 'ncSettings', label: 'Settings', onClick: () => onTabClick('settings') },
])

View File

@@ -97,7 +97,7 @@ const miniSidebarTabs = computed(() => [
const { isUIAllowed } = useRoles()
const navigateToProjectPage = () => {
if (route.value.name?.startsWith('index-typeOrId-baseId-')) {
if (route.value.name?.toString().startsWith('index-typeOrId-baseId-')) {
return
}
@@ -177,17 +177,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
})
// ── Main nav items (add/remove/reorder here) ──
const mainItems: NavItem[] = computed(() => [
// {
// key: 'agents',
// icon: 'ncAgent',
// label: 'Agents',
// accentColor: '#d4944a',
// indicatorColor: '#c47830',
// onClick: () => {
// onTabClick('agents')
// },
// },
const mainItems = computed<NavItem[]>(() => [
{
key: 'data',
icon: 'ncTable',
@@ -197,15 +187,19 @@ const mainItems: NavItem[] = computed(() => [
onTabClick('data')
},
},
{
key: 'automations',
icon: 'ncAutomation',
label: 'Automations',
disabled: !hasAvailableBases.value,
onClick: () => {
onTabClick('automations')
},
},
...(isEeUI
? [
{
key: 'automations',
icon: 'ncAutomation',
label: 'Automations',
disabled: !hasAvailableBases.value,
onClick: () => {
onTabClick('automations')
},
},
]
: []),
{ key: 'divider', icon: 'ncDivider', label: 'divider' },
{ key: 'settings', icon: 'ncSettings', label: 'Settings', onClick: () => onTabClick('settings') },
])