feat: Version Number on offline servers (#1291)

https://github.com/Termix-SSH/Support/issues/1291
This commit is contained in:
LukeGus committed 2026-09-20 18:48:40 -05:00
1 parent 0b7e616419
commit 4052d63594
1 file changed
+16 -1
+16 -1
View File
@@ -830,7 +830,22 @@ export function UserProfilePanel({
setVersionStatus(info.status ?? "unknown");
setReleaseUrl(releaseUrlFrom(info));
})
.catch(() => {});
.catch(() => {
// Backend/network unreachable (offline machine). The installer
// version is still known locally via Electron, so use that instead
// of leaving the version blank.
if (isElectron()) {
window.electronAPI
?.getAppVersion?.()
.then((appVersion) => {
if (appVersion) {
setVersion(appVersion);
setVersionStatus("unknown");
}
})
.catch(() => {});
}
});
}, [t]);
// The rail can toggle these from its right-click menu while this panel is