Add route and logic to create a new invoice directly from the sidebar

This commit is contained in:
2025-10-22 16:52:16 +02:00
parent 2131481a9e
commit 6a213e2cff
3 changed files with 11 additions and 3 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
import NavFooter from '@/components/NavFooter.vue';
import NavMain from '@/components/NavMain.vue';
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarTrigger } from '@/components/ui/sidebar';
import { dashboard, crm, offers, invoices, timesheets, customers, leads, achievements } from '@/routes';
import { dashboard, crm, offers, invoices, newInvoice, timesheets, customers, leads, achievements } from '@/routes';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import { Kbd } from '@/components/ui/kbd'
import { edit } from '@/routes/profile';
@@ -59,7 +59,7 @@ const mainNavGroups: NavGroup[] = [
title: "Neue Rechnung",
icon: Plus,
color: 'text-foreground',
href: invoices()
href: newInvoice()
}
},
{
@@ -92,7 +92,7 @@ const footerNavItems: NavItem[] = [
<TooltipProvider>
<Tooltip :delay-duration="666">
<TooltipTrigger class="w-fit absolute -right-0">
<TooltipTrigger class="w-fit absolute right-3 group-data-[collapsible=icon]:right-5">
<SidebarTrigger class="hidden md:flex text-primary-foreground" />
</TooltipTrigger>
<TooltipContent>