aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-01 00:57:14 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-01 00:57:14 +0200
commitc82336dfd2945680b4919dcbbc71ff3effd6809d (patch)
treed4a0bf8f656bf2d6006afc9bb5428a8c61607737 /src-ui/src
parent4dcf3a8d73d46b41220e7a5fb8be60be46ca9a49 (diff)
downloadFlightCore-c82336dfd2945680b4919dcbbc71ff3effd6809d.tar.gz
FlightCore-c82336dfd2945680b4919dcbbc71ff3effd6809d.zip
Add structure to implement Nortshtar update check
Actual logic is not implemented yet
Diffstat (limited to 'src-ui/src')
-rw-r--r--src-ui/src/main.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 2150df4f..4cbd8099 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -68,7 +68,10 @@ document.addEventListener("DOMContentLoaded", async function () {
if (northstar_version_number && northstar_version_number.length > 0) {
globalState.installed_northstar_version = northstar_version_number;
omniButtonEl.textContent = `Play (${northstar_version_number})`;
- // TODO check if version is newest
+ let northstar_is_outdated = await invoke("check_is_northstar_outdated") as boolean;
+ if (northstar_is_outdated) {
+ omniButtonEl.textContent = "Update";
+ }
}
console.log(globalState);
}