aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-01-12 15:04:03 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-01-12 15:04:03 +0100
commit0221d01aa7b2e35e29c9d60bbd5ef9083541c862 (patch)
treed0ff60656ec3132738d3d71de22df2c899b5ded6 /src-vue/src
parenta7c68f0a208b3fdcd29b9ed415c3da9fb6356957 (diff)
downloadFlightCore-feat/cleanup-remote-mods.tar.gz
FlightCore-feat/cleanup-remote-mods.zip
temp: Commit working treefeat/cleanup-remote-mods
Still needs to actually delete the folder
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/views/RepairView.vue14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-vue/src/views/RepairView.vue b/src-vue/src/views/RepairView.vue
index 341dff2d..8921a70c 100644
--- a/src-vue/src/views/RepairView.vue
+++ b/src-vue/src/views/RepairView.vue
@@ -25,6 +25,11 @@
{{ $t('settings.repair.window.disable_modsettings') }}
</el-button>
+ <el-button type="primary" @click="deleteRemoteMods">
+ {{ $t('settings.repair.window.delete_remote_mods') }}
+ </el-button>
+
+
<h2>FlightCore</h2>
<el-button type="primary" @click="cleanUpDownloadFolder">
@@ -135,6 +140,15 @@ export default defineComponent({
showErrorNotification(error);
});
},
+ async deleteRemoteMods() {
+ await invoke("delete_remote_mods", { gameInstall: this.$store.state.game_install })
+ .then((message) => {
+ showNotification(this.$t('generic.success'));
+ })
+ .catch((error) => {
+ showErrorNotification(error);
+ });
+ },
},
watch: {
// Lang value is propagated to repair view after it's mounted, so we need to watch