diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-10 17:10:46 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-10 17:10:46 +0200 |
commit | e9d4a9b3834cda6f1c417da322d21beca5f045a4 (patch) | |
tree | 4e0af852072bc36983f9cf95f6582cdf95de641b /src-ui/src | |
parent | 9e860624f84d80522a1602a4c0bc5188a345bce5 (diff) | |
download | FlightCore-e9d4a9b3834cda6f1c417da322d21beca5f045a4.tar.gz FlightCore-e9d4a9b3834cda6f1c417da322d21beca5f045a4.zip |
Use variable to set button state
Diffstat (limited to 'src-ui/src')
-rw-r--r-- | src-ui/src/main.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 4c203abc..4026da66 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -5,6 +5,7 @@ import { appDir } from '@tauri-apps/api/path'; const $ = document.querySelector.bind(document); const button_install_string = "Install Northstar"; +const button_in_install_string = "Installing..."; const button_update_string = "Update Northstar"; const button_play_string = "Launch Northstar"; const button_manual_find_string = "Manually select Titanfall2 install location"; @@ -103,7 +104,7 @@ document.addEventListener("DOMContentLoaded", async function () { let install_northstar_result = invoke("install_northstar_caller", { gamePath: globalState.gamepath }); // Update button while installl process is run - omniButtonEl.textContent = "Installing..."; + omniButtonEl.textContent = button_in_install_string; await install_northstar_result.then((message) => { console.log(message); |