aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/SettingsView.vue
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-07-15 16:51:20 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-07-15 16:51:20 +0200
commit9ee553ef23cb86b2fcdf7879149c833c81fa8fb5 (patch)
tree9a4cf72784dbfbdccea82d0781c6e0028f63bed8 /src-vue/src/views/SettingsView.vue
parent3ce94cde959df602fc2ed9fc42d24edf24efe7a4 (diff)
downloadFlightCore-9ee553ef23cb86b2fcdf7879149c833c81fa8fb5.tar.gz
FlightCore-9ee553ef23cb86b2fcdf7879149c833c81fa8fb5.zip
feat: Change repair window to tab
Diffstat (limited to 'src-vue/src/views/SettingsView.vue')
-rw-r--r--src-vue/src/views/SettingsView.vue16
1 files changed, 7 insertions, 9 deletions
diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue
index 5ead665b..613c5a26 100644
--- a/src-vue/src/views/SettingsView.vue
+++ b/src-vue/src/views/SettingsView.vue
@@ -104,11 +104,11 @@
<language-selector/>
</div>
- <!-- Repair window -->
+ <!-- Repair view -->
<div class="fc_parameter__panel">
<h3>{{ $t('settings.repair.title') }}</h3>
- <el-button type="primary" @click="openRepairWindow">
- {{ $t('settings.repair.open_window') }}
+ <el-button type="primary" @click="openRepairView">
+ {{ $t('settings.repair.open_view') }}
</el-button>
</div>
@@ -152,6 +152,7 @@ const persistentStore = new Store('flight-core-settings.json');
import { open } from '@tauri-apps/api/shell';
import { i18n } from '../main';
import { ElMessageBox } from 'element-plus'
+import { Tabs } from "../utils/Tabs";
export default defineComponent({
name: "SettingsView",
@@ -241,12 +242,9 @@ export default defineComponent({
async updateGamePath() {
this.$store.commit('updateGamePath');
},
- async openRepairWindow() {
- await invoke("open_repair_window")
- .then((message) => { })
- .catch((error) => {
- showErrorNotification(error);
- });
+ async openRepairView() {
+ this.$store.state.repair_view_visible = true;
+ this.$store.commit('updateCurrentTab', Tabs.REPAIR);
},
async openGameInstallFolder() {
// Verify the game path is actually set