From 5a4ae78cafc219efd376befd7490863e47e82410 Mon Sep 17 00:00:00 2001 From: Jonathan Dunn Date: Mon, 1 Apr 2024 12:38:29 -0400 Subject: [PATCH] fixed something --- installer/client/cli/utils.py | 3 +-- installer/client/gui/static/js/index.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index 1d927c9..e4f4d5a 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -669,8 +669,7 @@ def run_electron_app(): # Step 2: Check for the './installer/client/gui' directory target_dir = '../gui' if not os.path.exists(target_dir): - print(f"The directory { - target_dir} does not exist. Please check the path and try again.") + print(f"""The directory {target_dir} does not exist. Please check the path and try again.""") return # Step 3: Check for NPM installation diff --git a/installer/client/gui/static/js/index.js b/installer/client/gui/static/js/index.js index c259e2b..dc7218b 100644 --- a/installer/client/gui/static/js/index.js +++ b/installer/client/gui/static/js/index.js @@ -212,6 +212,9 @@ document.addEventListener("DOMContentLoaded", async function () { alert("Failed to reload models."); } }); + updatePatternsButton.addEventListener("click", async () => { + window.electronAPI.send("update-patterns"); + }); // Submit button click handler submitButton.addEventListener("click", async () => {