|
|
|
|
@ -50,16 +50,29 @@
|
|
|
|
|
<div>
|
|
|
|
|
<h3 class="text-lg font-medium">Danger Zone</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="rounded-lg border border-destructive">
|
|
|
|
|
<div class="flex justify-between items-center p-4">
|
|
|
|
|
<div class="flex flex-col gap-1">
|
|
|
|
|
<span class="text-sm">Delete Project</span>
|
|
|
|
|
<span class="text-xs text-muted-foreground"
|
|
|
|
|
>Permanently delete your project</span>
|
|
|
|
|
</div>
|
|
|
|
|
<Dialog.Root
|
|
|
|
|
open={deleteDialogOpen}
|
|
|
|
|
onOpenChange={(open) => (deleteDialogOpen = open)}>
|
|
|
|
|
<Dialog.Trigger>
|
|
|
|
|
<Button variant="destructive">Delete Project</Button>
|
|
|
|
|
<Button
|
|
|
|
|
variant="default"
|
|
|
|
|
class="group hover:bg-destructive">
|
|
|
|
|
<span class="text-destructive group-hover:text-primary"
|
|
|
|
|
>Delete Project</span>
|
|
|
|
|
</Button>
|
|
|
|
|
</Dialog.Trigger>
|
|
|
|
|
<Dialog.Content>
|
|
|
|
|
<Dialog.Header>
|
|
|
|
|
<Dialog.Title>Are you sure absolutely sure?</Dialog.Title>
|
|
|
|
|
<Dialog.Title>
|
|
|
|
|
Are you sure absolutely sure?
|
|
|
|
|
</Dialog.Title>
|
|
|
|
|
<Dialog.Description>
|
|
|
|
|
This action cannot be undone. This will permanently
|
|
|
|
|
delete your project and all its associated data.
|
|
|
|
|
@ -80,8 +93,9 @@
|
|
|
|
|
{...attrs}
|
|
|
|
|
id="deleteShorteners"
|
|
|
|
|
bind:checked={$formData.deleteShorteners} />
|
|
|
|
|
<Form.Label for="deleteShorteners"
|
|
|
|
|
>Delete Shorteners</Form.Label>
|
|
|
|
|
<Form.Label for="deleteShorteners">
|
|
|
|
|
Delete Shorteners?
|
|
|
|
|
</Form.Label>
|
|
|
|
|
</div>
|
|
|
|
|
</Form.Control>
|
|
|
|
|
<Form.FieldErrors />
|
|
|
|
|
@ -103,4 +117,5 @@
|
|
|
|
|
</Dialog.Root>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ScrollArea>
|
|
|
|
|
|