Show progress status during delete all

This commit is contained in:
thePR0M3TH3AN committed 2025-10-20 13:07:40 -04:00
1 parent f2998af7cb
commit 8c5c061bdc
1 file changed
+8 -3
+8 -3
View File
@@ -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("");
}
}