Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: add Profile management #444

Closed
wants to merge 11 commits into from
18 changes: 18 additions & 0 deletions src-vue/src/views/DeveloperView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
Get installed mods
</el-button>

<el-button type="primary" @click="getAvailableProfiles">
Get available Profiles
</el-button>

<h3>Testing</h3>
<pull-requests-selector />

Expand Down Expand Up @@ -224,6 +228,20 @@ export default defineComponent({
showErrorNotification(error);
});
},
async getAvailableProfiles() {
let state = this.$store.state;
await invoke("fetch_profiles", { gameInstall: state.game_install })
.then((message) => {
state.available_profiles = message;

// Just a visual indicator that it worked
showNotification('Success');
})
.catch((error) => {
console.error(error);
showErrorNotification(error);
});
},
async installMod() {
let mod_to_install = this.mod_to_install_field_string;
await invoke<string>("install_mod_wrapper", { gameInstall: this.$store.state.game_install, thunderstoreModString: mod_to_install }).then((message) => {
Expand Down