Add Tooltop to new invoice button
This commit is contained in:
@@ -17,6 +17,8 @@ import { Input } from '@/components/ui/input'
|
|||||||
import { toast } from 'vue-sonner'
|
import { toast } from 'vue-sonner'
|
||||||
import { testToast } from '@/lib/utils'
|
import { testToast } from '@/lib/utils'
|
||||||
import SelectSeparator from '@/components/ui/select/SelectSeparator.vue'
|
import SelectSeparator from '@/components/ui/select/SelectSeparator.vue'
|
||||||
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
|
||||||
|
import { Kbd, KbdGroup } from '@/components/ui/kbd'
|
||||||
|
|
||||||
const breadcrumbs: BreadcrumbItem[] = [{
|
const breadcrumbs: BreadcrumbItem[] = [{
|
||||||
title: 'Rechnungsstellung',
|
title: 'Rechnungsstellung',
|
||||||
@@ -192,7 +194,7 @@ const deleteInvoice = async (id: number) => {
|
|||||||
class="flex h-full flex-1 flex-col gap-4 overflow-x-auto p-4 lg:p-8 print:bg-transparent print:p-0 print:m-0">
|
class="flex h-full flex-1 flex-col gap-4 overflow-x-auto p-4 lg:p-8 print:bg-transparent print:p-0 print:m-0">
|
||||||
|
|
||||||
<!-- Function Header -->
|
<!-- Function Header -->
|
||||||
<div id="function-header" class="flex row justify-between items-center gap-8 mb-4">
|
<div id="function-header" class="flex row justify-between items-center mb-4 gap-4">
|
||||||
|
|
||||||
<!-- Year select -->
|
<!-- Year select -->
|
||||||
<div class="flex row items-center">
|
<div class="flex row items-center">
|
||||||
@@ -235,15 +237,30 @@ const deleteInvoice = async (id: number) => {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- New button -->
|
|
||||||
<!-- <Button size="sm" @click="testToast" class="mr-2">
|
<!-- <Button size="sm" @click="testToast" class="mr-2">
|
||||||
Toast
|
Toast
|
||||||
</Button> -->
|
</Button> -->
|
||||||
|
|
||||||
|
<!-- New button -->
|
||||||
|
<TooltipProvider>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger>
|
||||||
<Button size="sm" variant="action" @click="showDetail(newInvoice())">
|
<Button size="sm" variant="action" @click="showDetail(newInvoice())">
|
||||||
<Plus />
|
<Plus />
|
||||||
Neu
|
Neu
|
||||||
</Button>
|
</Button>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>
|
||||||
|
<span>Neue Rechnung anlegen</span>
|
||||||
|
<KbdGroup class="ml-2">
|
||||||
|
<Kbd class="visible-mac">⌘</Kbd>
|
||||||
|
<Kbd class="visible-pc">Ctrl</Kbd>
|
||||||
|
<Kbd>N</Kbd>
|
||||||
|
</KbdGroup>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Invoice Table -->
|
<!-- Invoice Table -->
|
||||||
|
|||||||
Reference in New Issue
Block a user