aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-09 23:50:55 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-09 23:50:55 +0200
commita19af76b55e3c05ae350ab9166b1a7ab677762d8 (patch)
tree6b26e452b0a8de127424018d5238c1bad708b5eb
parent8fe35669337cd24fe0a3d0333102f2b8823af301 (diff)
downloadFlightCore-a19af76b55e3c05ae350ab9166b1a7ab677762d8.tar.gz
FlightCore-a19af76b55e3c05ae350ab9166b1a7ab677762d8.zip
Use consts to define button content
-rw-r--r--src-ui/src/main.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 590224f0..73fad575 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -5,8 +5,9 @@ import { appDir } from '@tauri-apps/api/path';
const $ = document.querySelector.bind(document);
const button_install_string = "Install Northstar";
-const button_update_string = "Update";
-const button_play_string = "Play";
+const button_update_string = "Update Northstar";
+const button_play_string = "Launch Northstar";
+const button_manual_find_string = "Manually find Titanfall2 install location";
// Stores the overall state of the application
var globalState = {
@@ -19,7 +20,7 @@ async function get_northstar_version_number_and_set_button_accordingly(omniButto
let northstar_version_number = await invoke("get_northstar_version_number_caller") as string;
if (northstar_version_number && northstar_version_number.length > 0) {
globalState.installed_northstar_version = northstar_version_number;
- omniButtonEl.textContent = `Play (${northstar_version_number})`;
+ omniButtonEl.textContent = `${button_play_string} (${northstar_version_number})`;
let northstar_is_outdated = await invoke("check_is_northstar_outdated") as boolean;
if (northstar_is_outdated) {
omniButtonEl.textContent = button_update_string;
@@ -143,6 +144,6 @@ document.addEventListener("DOMContentLoaded", async function () {
console.log(globalState);
}
else {
- omniButtonEl.textContent = "Find Titanfall2 install location";
+ omniButtonEl.textContent = button_manual_find_string;
}
})