Add seperate card for current recording and recording controls

This commit is contained in:
Caleb
2025-05-16 16:33:45 -04:00
committed by Cooper Quintin
parent 68aafd41e1
commit 4982463b57
5 changed files with 20 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
<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-between gap-2">
<DeleteButton
text="Delete ALL Recordings"
prompt={`Are you sure you want to delete ALL recordings?`}
url={`/api/delete-all-recordings`}
/>
</div>