aboutsummaryrefslogtreecommitdiff
path: root/src-ui
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 23:55:33 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 23:55:33 +0200
commit74e8d7f5104b08d1598693602979b29cfcd146e9 (patch)
tree466aa853a54567ff3a290f4d6105a49a0abcf4a2 /src-ui
parent2ce6e6a8767e23b429a33034c9dea143b0e65f22 (diff)
downloadFlightCore-74e8d7f5104b08d1598693602979b29cfcd146e9.tar.gz
FlightCore-74e8d7f5104b08d1598693602979b29cfcd146e9.zip
Show version number in UI
Diffstat (limited to 'src-ui')
-rw-r--r--src-ui/src/main.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 3c44ce55..fcd68cb4 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -11,6 +11,7 @@ document.addEventListener("DOMContentLoaded", async function () {
let pingEl = $("backend-ping")! as HTMLElement;
let panicButtonEl = $("panic-button") as HTMLElement;
let installLocationHolderEl = $("install-location-holder") as HTMLElement;
+ let versionNumberHolderEl = $("version-number-holder") as HTMLElement;
// listen backend-ping event (from Tauri Rust App)
listen("install-location-result", function (evt: TauriEvent<string>) {
@@ -19,6 +20,11 @@ document.addEventListener("DOMContentLoaded", async function () {
installLocationHolderEl.textContent = evt.payload;
})
+ // listen for version number ping
+ listen("current-version-ping", function (evt: TauriEvent<string>) {
+ versionNumberHolderEl.textContent = evt.payload;
+ })
+
// listen backend-ping event (from Tauri Rust App)
listen("backend-ping", function (evt: TauriEvent<any>) {
pingEl.classList.add("on");