Merge pull request #718 from PR0M3TH3AN/codex/add-loading-notification-for-delete-all-function

Add persistent delete-all status notification
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-20 13:07:59 -04:00
commit 59e779b711
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("");
}
}