From e75f5f8baf5169d37962fadbac6609146900e070 Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 3 Aug 2023 19:37:04 +0200 Subject: refactor: Use `GameInstall` object for PR install functions (#467) Passes the whole `GameInstall` object instead of individual path to functions related to PR installs. This is done in preparation for #444 --- src-vue/src/plugins/modules/pull_requests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-vue') diff --git a/src-vue/src/plugins/modules/pull_requests.ts b/src-vue/src/plugins/modules/pull_requests.ts index 3f3ba259..4caec0b0 100644 --- a/src-vue/src/plugins/modules/pull_requests.ts +++ b/src-vue/src/plugins/modules/pull_requests.ts @@ -54,7 +54,7 @@ export const pullRequestModule = { // Send notification telling the user to wait for the process to finish const notification = showNotification(`Installing launcher PR ${pull_request.number}`, 'Please wait', 'info', 0); - await invoke("apply_launcher_pr", { pullRequest: pull_request, gameInstallPath: store.state.game_install.game_path }) + await invoke("apply_launcher_pr", { pullRequest: pull_request, gameInstall: store.state.game_install }) .then((message) => { console.log(message); // Show user notification if mod install completed. @@ -72,7 +72,7 @@ export const pullRequestModule = { // Send notification telling the user to wait for the process to finish const notification = showNotification(`Installing mods PR ${pull_request.number}`, 'Please wait', 'info', 0); - await invoke("apply_mods_pr", { pullRequest: pull_request, gameInstallPath: store.state.game_install.game_path }) + await invoke("apply_mods_pr", { pullRequest: pull_request, gameInstall: store.state.game_install }) .then((message) => { // Show user notification if mod install completed. showNotification( -- cgit v1.2.3