Files
gpx.studio/website/src/lib/components/toolbar/tools/routing/RoutingControlPopup.svelte

27 lines
755 B
Svelte
Raw Normal View History

2024-04-26 13:33:17 +02:00
<script lang="ts">
import * as Card from '$lib/components/ui/card';
import { Button } from '$lib/components/ui/button';
2024-04-29 17:03:23 +02:00
import Shortcut from '$lib/components/Shortcut.svelte';
2024-04-26 13:33:17 +02:00
import { Trash2 } from 'lucide-svelte';
import { _ } from 'svelte-i18n';
export let element: HTMLElement;
</script>
<div bind:this={element} class="hidden">
<Card.Root class="border-none shadow-md text-base">
<Card.Content class="flex flex-col p-1">
<Button
class="w-full px-2 py-1 h-6 justify-start"
variant="ghost"
on:click={() => element.dispatchEvent(new CustomEvent('delete'))}
>
2024-04-29 17:03:23 +02:00
<Trash2 size="16" class="mr-1" />
{$_('menu.delete')}
<Shortcut key="" shift={true} click={true} />
</Button>
2024-04-26 13:33:17 +02:00
</Card.Content>
</Card.Root>
</div>