aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue')
-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