mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 02:57:06 +00:00
fix: some navigation issue adn oss missing changes
This commit is contained in:
@@ -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') },
|
||||
])
|
||||
|
||||
@@ -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') },
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user