mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(ui): resolve race condition in UploadModal by initializing controller early
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
c1d7cc768e
commit
eb56dbb6a2
3 files changed
+12
-1
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# Scheduler Update Agent - Completed
|
||||
|
||||
**Date:** 2026-02-22
|
||||
**Result:** Rosters verified and in sync. Fix applied to UploadModal race condition which was failing CI.
|
||||
@@ -1124,6 +1124,7 @@ export default class ApplicationBootstrap {
|
||||
},
|
||||
logger: devLogger,
|
||||
});
|
||||
app.appChromeController.initialize();
|
||||
|
||||
app.blacklistedEventIds = new Set();
|
||||
if (this.window?.NostrTools?.nip19?.decode) {
|
||||
|
||||
@@ -1263,8 +1263,14 @@ export class UploadModal {
|
||||
// --- Modal Control ---
|
||||
|
||||
async open({ triggerElement } = {}) {
|
||||
await this.load();
|
||||
try {
|
||||
await this.load();
|
||||
} catch (error) {
|
||||
devLogger.error("[UploadModal] Failed to load modal template:", error);
|
||||
}
|
||||
|
||||
if (!this.root) return;
|
||||
|
||||
this.root.classList.remove("hidden");
|
||||
this.setGlobalModalState("upload", true);
|
||||
this.isVisible = true;
|
||||
|
||||
Reference in new issue
Block a user