From 65d79509327fe105bc139ddc7d251cdd651716d7 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:14:23 -0400 Subject: [PATCH] Abort edit flow when prompts are cancelled --- js/app.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/js/app.js b/js/app.js index e861eef4..1fab3281 100644 --- a/js/app.js +++ b/js/app.js @@ -3093,22 +3093,41 @@ class bitvidApp { // 3) Prompt the user for updated fields const newTitle = prompt("New Title? (blank=keep existing)", video.title); + if (newTitle === null) { + return; + } + const newMagnet = prompt( "New Magnet? (blank=keep existing)", video.magnet ); + if (newMagnet === null) { + return; + } + const newUrl = prompt( "New URL? (blank=keep existing)", video.url || "" ); + if (newUrl === null) { + return; + } + const newThumb = prompt( "New Thumbnail? (blank=keep existing)", video.thumbnail ); + if (newThumb === null) { + return; + } + const newDesc = prompt( "New Description? (blank=keep existing)", video.description ); + if (newDesc === null) { + return; + } // const wantPrivate = confirm("Make this video private? OK=Yes, Cancel=No"); // 4) Build final updated fields (or fallback to existing)