Add delete all recordings button to web ui

This commit is contained in:
Sashanoraa
2025-04-03 00:08:11 -04:00
committed by Will Greenberg
parent 326d4106bd
commit c47be1074b
5 changed files with 41 additions and 1 deletions

View File

@@ -215,6 +215,13 @@ async function stopRecording() {
populateDivs();
}
async function deleteAllRecodings() {
if (window.confirm("Are you sure you want to permanently delete all of your recordings?")) {
await req('POST', '/api/delete-all-recordings');
populateDivs();
}
}
async function req(method, url) {
const response = await fetch(url, {
method: method,