aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins/modules
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-08-03 19:37:04 +0200
committerGitHub <noreply@github.com>2023-08-03 19:37:04 +0200
commite75f5f8baf5169d37962fadbac6609146900e070 (patch)
tree513f979faf40d90ebafb87314005946fef7ceb5a /src-vue/src/plugins/modules
parentcc255628361c6da04f39256ebfd4c647be11a613 (diff)
downloadFlightCore-e75f5f8baf5169d37962fadbac6609146900e070.tar.gz
FlightCore-e75f5f8baf5169d37962fadbac6609146900e070.zip
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
Diffstat (limited to 'src-vue/src/plugins/modules')
-rw-r--r--src-vue/src/plugins/modules/pull_requests.ts4
1 files changed, 2 insertions, 2 deletions
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(