mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 20:57:10 +00:00
fix: rename automation to automations
This commit is contained in:
@@ -89,8 +89,8 @@ const onTabClick = async (tabKey: string) => {
|
||||
const basePath = getBasePath()
|
||||
if (!basePath) return
|
||||
|
||||
if (tabKey === 'automation') {
|
||||
await navigateTo(`${basePath}/automation`)
|
||||
if (tabKey === 'automations') {
|
||||
await navigateTo(`${basePath}/automations`)
|
||||
} else {
|
||||
await navigateTo(basePath)
|
||||
}
|
||||
@@ -124,13 +124,13 @@ const mainItems = computed<NavItem[]>(() => [
|
||||
onClick: () => onTabClick('data'),
|
||||
},
|
||||
{
|
||||
key: 'automation',
|
||||
key: 'automations',
|
||||
icon: 'ncAutomation',
|
||||
label: 'Automation',
|
||||
label: 'Automations',
|
||||
accentColor: '#a78bfa',
|
||||
indicatorColor: '#8b5cf6',
|
||||
disabled: !hasAvailableBases.value,
|
||||
onClick: () => onTabClick('automation'),
|
||||
onClick: () => onTabClick('automations'),
|
||||
},
|
||||
{ key: 'divider', icon: '', label: '' },
|
||||
{ key: 'settings', icon: 'ncSettings', label: 'Settings', onClick: () => onTabClick('settings') },
|
||||
|
||||
@@ -91,7 +91,7 @@ const isBaseListModalOpen = ref(false)
|
||||
|
||||
const miniSidebarTabs = computed(() => [
|
||||
{ key: 'data' as const, icon: 'ncTableOutline', activeIcon: 'ncTableFilled', label: 'Data' },
|
||||
{ key: 'automation' as const, icon: 'ncAutomation', activeIcon: 'ncAutomationsFilled', label: 'Automate' },
|
||||
{ key: 'automations' as const, icon: 'ncAutomation', activeIcon: 'ncAutomationsFilled', label: 'Automate' },
|
||||
// { key: 'agents' as const, icon: 'ncSupportAgent', activeIcon: 'ncSupportAgent', label: 'Agents' },
|
||||
])
|
||||
|
||||
@@ -141,8 +141,8 @@ const onTabClick = async (tabKey: string) => {
|
||||
const basePath = getBasePath()
|
||||
if (!basePath) return
|
||||
|
||||
if (tabKey === 'automation') {
|
||||
await navigateTo(`${basePath}/automation`)
|
||||
if (tabKey === 'automations') {
|
||||
await navigateTo(`${basePath}/automations`)
|
||||
} else {
|
||||
await navigateTo(basePath)
|
||||
}
|
||||
@@ -201,14 +201,14 @@ const mainItems: NavItem[] = computed(() => [
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'automation',
|
||||
key: 'automations',
|
||||
icon: 'ncAutomation',
|
||||
label: 'Automation',
|
||||
label: 'Automations',
|
||||
accentColor: '#a78bfa',
|
||||
indicatorColor: '#8b5cf6',
|
||||
disabled: !hasAvailableBases.value,
|
||||
onClick: () => {
|
||||
onTabClick('automation')
|
||||
onTabClick('automations')
|
||||
},
|
||||
},
|
||||
{ key: 'divider', icon: 'ncDivider', label: 'divider' },
|
||||
@@ -328,7 +328,7 @@ const onItemClick = (panel: string) => {
|
||||
}
|
||||
|
||||
.nc-rail-logo {
|
||||
@apply flex items-center justify-center cursor-pointer pt-0.5 pb-1 opacity-90 hover:opacity-100 transform transition-all duration-150;
|
||||
@apply flex items-center justify-center cursor-pointer pt-1 opacity-90 hover:opacity-100 transform transition-all duration-150;
|
||||
|
||||
color: #555;
|
||||
|
||||
|
||||
@@ -79,8 +79,8 @@ const itemStyle = computed(() => {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.nc-rail-item {
|
||||
@apply flex flex-col gap-1 items-center justify-center pt-2.5 pb-1.5 cursor-pointer transition-all duration-150 rounded-lg;
|
||||
width: 52px;
|
||||
@apply flex flex-col gap-1.5 items-center justify-center pt-2.5 pb-1.5 cursor-pointer transition-all duration-150 rounded-[10px];
|
||||
width: 53px;
|
||||
color: #666;
|
||||
|
||||
:root[theme='dark'] & {
|
||||
@@ -100,7 +100,7 @@ const itemStyle = computed(() => {
|
||||
}
|
||||
|
||||
.nc-rail-item-label {
|
||||
@apply select-none text-captionXs text-[9px] font-medium leading-tight opacity-85;
|
||||
@apply select-none text-captionXs text-[9px] font-medium leading-tight tracking-tight opacity-85;
|
||||
}
|
||||
|
||||
&:hover:not(.active):not(.disabled) {
|
||||
|
||||
Reference in New Issue
Block a user