mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-30 03:19:28 -07:00
19 lines
518 B
Svelte
19 lines
518 B
Svelte
<script lang="ts">
|
|
import { req } from "$lib/utils.svelte";
|
|
import DeleteButton from "./DeleteButton.svelte";
|
|
|
|
function confirmDelete() {
|
|
if (window.confirm(`Permanently delete ALL recordings?`)) {
|
|
req('POST', '/api/delete-all-recordings')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<div class="flex flex-row justify-end gap-2">
|
|
<DeleteButton
|
|
text="Delete ALL Recordings"
|
|
prompt={`Are you sure you want to delete ALL recordings?`}
|
|
url={`/api/delete-all-recordings`}
|
|
/>
|
|
</div>
|