From e2da749e0e75e1639a6f9bf8c96c635bb1f2cda2 Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Wed, 26 Nov 2025 21:05:56 -0500 Subject: [PATCH] Remove confirmation dialog from delete from disk button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- templates/watch.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/watch.html b/templates/watch.html index 100c4d0..cd7b5df 100644 --- a/templates/watch.html +++ b/templates/watch.html @@ -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); }