Remove confirmation dialog from delete from disk button

- Remove confirmation prompt from deleteFromDisk function
- Remove success alert, just reload page immediately
- Streamline deletion workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-26 21:05:56 -05:00
parent f2ec1335a9
commit e2da749e0e

View File

@@ -104,16 +104,13 @@
}
function deleteFromDisk() {
if (!confirm('Are you sure you want to delete this video from disk? This cannot be undone.')) return;
fetch('/api/videos/{{ video.id }}/file', {
method: 'DELETE'
})
.then(response => response.json())
.then(data => {
if (data.status === 'success') {
alert('Video deleted from disk! This page will refresh automatically.');
setTimeout(() => location.reload(), 2000);
location.reload();
} else {
alert('Failed to delete video: ' + data.message);
}