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: load system settings for proxy auth and OIDC users with local theme (#1219)

rcourtmana6bc55428cb6
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index fead1557b8..96ff05865b 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -621,6 +621,15 @@ function App() {
// Ensure settings are marked as loaded so UI doesn't stay in loading state
markSystemSettingsLoadedWithDefaults();
}
+ } else {
+ setHasLoadedServerTheme(true);
+ // 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);
+ markSystemSettingsLoadedWithDefaults();
+ });
}
// Load version info
@@ -673,6 +682,15 @@ function App() {
// Ensure settings are marked as loaded so UI doesn't stay in loading state
markSystemSettingsLoadedWithDefaults();
}
+ } else {
+ setHasLoadedServerTheme(true);
+ // 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);
+ markSystemSettingsLoadedWithDefaults();
+ });
}
// Load version info