From 44583f739af9db81751655f7391757a28e949239 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 24 Jul 2023 13:51:34 +0200 Subject: chore: Store `game_path` and `install_type` as `GameInstall` in store (#445) We pass the `GameInstall` object to backend on most calls, yet we store the parameters individually in frontend. This PR resolves that by storing the whole object instead of individual parameters, simplifying a lot of the code that calls the backend. * chore: Store game_path and install_type as GameInstall in store * Add missed uses of old attributes * fix: Update missed attribute in DevView * fix: Update missed attribute in SettingsView * refactor: Update functions to use new object in RepairView * Initialize game_install as empty object --------- Co-authored-by: GeckoEidechse --- src-vue/src/views/DeveloperView.vue | 22 ++++------------------ src-vue/src/views/RepairView.vue | 26 ++++---------------------- src-vue/src/views/SettingsView.vue | 4 ++-- 3 files changed, 10 insertions(+), 42 deletions(-) (limited to 'src-vue/src/views') diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index 28ab3892..e95154f1 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -132,7 +132,6 @@