Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(UI): clear stale update banner after successful update
Chris Sherwood6b41ebbd454d
diff --git a/admin/inertia/pages/settings/update.tsx b/admin/inertia/pages/settings/update.tsxindex 5f33b491..23527fb6 100644--- a/admin/inertia/pages/settings/update.tsx+++ b/admin/inertia/pages/settings/update.tsx@@ -258,7 +258,13 @@ export default function SystemUpdatePage(props: { system: Props }) {// Check if update is complete or erroredif (response.stage === 'complete') {- // Give a moment for the new container to fully start+ // Re-check version so the KV store clears the stale "update available" flag+ // before we reload, otherwise the banner shows "current → current"+ try {+ await api.checkLatestVersion(true)+ } catch {+ // Non-critical - page reload will still work+ }setTimeout(() => {window.location.reload()}, 2000)