aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue39
1 files changed, 15 insertions, 24 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 11cb4f5d..665e2e55 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -4,6 +4,7 @@
<el-alert title="Warning" type="warning" :closable="false" show-icon>
This page is designed for developers. Some of the buttons here can break your Northstar install if you do not know what you're doing!
</el-alert>
+
<h3>Basic:</h3>
<el-button type="primary" @click="disableDevMode">
@@ -36,8 +37,8 @@
<h3>Repair:</h3>
- <el-button type="primary" @click="disableAllModsButCore">
- Disable all but core mods
+ <el-button type="primary" @click="createNewWindow">
+ Open Repair window
</el-button>
<el-button type="primary" @click="forceInstallNorthstar">
@@ -118,28 +119,6 @@ export default defineComponent({
async launchGameWithoutChecks() {
this.$store.commit('launchGame', true);
},
- async disableAllModsButCore() {
- let game_install = {
- game_path: this.$store.state.game_path,
- install_type: this.$store.state.install_type
- } as GameInstall;
- await invoke("disable_all_but_core", { gameInstall: game_install }).then((message) => {
- ElNotification({
- title: 'Success',
- message: "Disabled all mods but core",
- type: 'success',
- position: 'bottom-right'
- });
- })
- .catch((error) => {
- ElNotification({
- title: 'Error',
- message: error,
- type: 'error',
- position: 'bottom-right'
- });
- });
- },
async getInstalledMods() {
let game_install = {
game_path: this.$store.state.game_path,
@@ -261,6 +240,18 @@ export default defineComponent({
notification.close();
});
},
+ async createNewWindow() {
+ await invoke("open_repair_window")
+ .then((message) => { })
+ .catch((error) => {
+ ElNotification({
+ title: 'Error',
+ message: error,
+ type: 'error',
+ position: 'bottom-right'
+ });
+ });
+ },
}
});
</script>