From e9d4a9b3834cda6f1c417da322d21beca5f045a4 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sat, 10 Sep 2022 17:10:46 +0200 Subject: Use variable to set button state --- src-ui/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-ui') 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); -- cgit v1.2.3