diff --git a/src/MediaManager.html b/src/MediaManager.html
index c34dc2e..39d6da8 100644
--- a/src/MediaManager.html
+++ b/src/MediaManager.html
@@ -606,6 +606,17 @@
});
}
+ setLoadingState(isLoading) {
+ if (isLoading) {
+ this.grid.innerHTML = `
+
+
+
Connecting to systems...
+
+ `;
+ }
+ }
+
logStatus(step, message, type = 'info') {
const container = this.logContainer;
const icon = type === 'success' ? '✅' : type === 'error' ? '❌' : '⏳';
@@ -798,9 +809,12 @@
// Reset State (this calls ui.updateSku which might show main-ui, so we re-toggle below if needed)
state.setSku(sku);
- // Enforce Loading State Again (in case setSku reset it)
- document.getElementById('loading-ui').style.display = 'block';
- document.getElementById('main-ui').style.display = 'none';
+ // Show Main UI immediately so logs are visible
+ document.getElementById('loading-ui').style.display = 'none';
+ document.getElementById('main-ui').style.display = 'block';
+
+ // Set Inline Loading State
+ ui.setLoadingState(true);
if (!preserveLogs) {
document.getElementById('status-log-container').innerHTML = '';