From 9ee553ef23cb86b2fcdf7879149c833c81fa8fb5 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 15 Jul 2024 16:51:20 +0200 Subject: feat: Change repair window to tab --- src-vue/src/App.vue | 3 ++- src-vue/src/i18n/lang/en.json | 6 +++--- src-vue/src/plugins/store.ts | 4 ++++ src-vue/src/views/SettingsView.vue | 16 +++++++--------- 4 files changed, 16 insertions(+), 13 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index 162b0b34..3a1eec8d 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -57,7 +57,7 @@ export default {
-
- +

{{ $t('settings.repair.title') }}

- - {{ $t('settings.repair.open_window') }} + + {{ $t('settings.repair.open_view') }}
@@ -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 -- cgit v1.2.3