From 8c5c061bdc15154bba6ef7576438eedb78ce3a87 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:07:40 -0400 Subject: [PATCH] Show progress status during delete all --- js/app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index bb366e68..e18f049b 100644 --- a/js/app.js +++ b/js/app.js @@ -6157,8 +6157,10 @@ class Application { return; } + this.deleteModal.setBusy(true, "Deleting…"); + this.showStatus("Deleting. Please wait.", { showSpinner: true }); + try { - this.deleteModal.setBusy(true, "Deleting…"); await this.nostrService.handleFullDeleteVideo({ videoRootId: rootId, video: targetVideo, @@ -6168,13 +6170,16 @@ class Application { await this.loadVideos(); this.showSuccess("All versions deleted successfully!"); - this.deleteModal.setBusy(false); this.deleteModal.close(); this.forceRefreshAllProfiles(); } catch (err) { devLogger.error("Failed to delete all versions:", err); this.showError("Failed to delete all versions. Please try again."); - this.deleteModal.setBusy(false); + } finally { + if (this.deleteModal) { + this.deleteModal.setBusy(false); + } + this.showStatus(""); } }