Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Docker update button stuck on 'Loading settings'. Related to #1114

rcourtmanf1b5f0670230
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index 1fda510e07..c77fa7e057 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -52,7 +52,7 @@ import { AIChat } from './components/AI/Chat';
import { AIStatusIndicator } from './components/AI/AIStatusIndicator';
import { aiChatStore } from './stores/aiChat';
import { useResourcesAsLegacy } from './hooks/useResources';
-import { updateSystemSettingsFromResponse } from './stores/systemSettings';
+import { updateSystemSettingsFromResponse, markSystemSettingsLoadedWithDefaults } from './stores/systemSettings';
import { initKioskMode } from './utils/url';
@@ -589,6 +589,8 @@ function App() {
setHasLoadedServerTheme(true);
} catch (error) {
logger.error('Failed to load theme from server', error);
+ // Ensure settings are marked as loaded so UI doesn't stay in loading state
+ markSystemSettingsLoadedWithDefaults();
}
}
@@ -637,6 +639,8 @@ function App() {
setHasLoadedServerTheme(true);
} catch (error) {
logger.error('Failed to load theme from server', error);
+ // Ensure settings are marked as loaded so UI doesn't stay in loading state
+ markSystemSettingsLoadedWithDefaults();
}
}
@@ -703,7 +707,11 @@ function App() {
// Still load system settings for other features (Docker update actions, etc.)
SettingsAPI.getSystemSettings()
.then((settings) => updateSystemSettingsFromResponse(settings))
- .catch((error) => logger.warn('Failed to load system settings', error));
+ .catch((error) => {
+ logger.warn('Failed to load system settings', error);
+ // Ensure settings are marked as loaded so UI doesn't stay in loading state
+ markSystemSettingsLoadedWithDefaults();
+ });
}
}
} catch (error) {
diff --git a/frontend-modern/src/stores/systemSettings.ts b/frontend-modern/src/stores/systemSettings.ts
index b47e51bc7a..2187eb777f 100644
--- a/frontend-modern/src/stores/systemSettings.ts
+++ b/frontend-modern/src/stores/systemSettings.ts
@@ -60,6 +60,16 @@ export function areSystemSettingsLoaded(): boolean {
return systemSettingsLoaded();
}
+/**
+ * Mark settings as loaded with default values.
+ * Call this when settings fail to load but the app should continue working.
+ */
+export function markSystemSettingsLoadedWithDefaults(): void {
+ setDisableDockerUpdateActions(false);
+ setSystemSettingsLoaded(true);
+ logger.debug('System settings marked as loaded with defaults');
+}
+
/**
* Update the local state when settings change (e.g., from Settings page).
*/