From b9287e9ac74312b5efee8c13e3164a3352d5d09d Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Wed, 21 Dec 2022 15:03:20 +0100 Subject: fix: Mod view with no game install (#114) * refactor: set installedMods as a ModsView computed property * feat: display a message on ModsView instead of cards if no mods were found * refactor: remove error notification on game path discovery failure * Revert "refactor: remove error notification on game path discovery failure" This reverts commit db4af9ff78dc17bda77ce94283e35f9f1e961086. * fix: don't invoke get_installed_mods_caller with no game path set --- src-vue/src/views/ModsView.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src-vue/src/views') diff --git a/src-vue/src/views/ModsView.vue b/src-vue/src/views/ModsView.vue index 00522bf5..b1d1aeff 100644 --- a/src-vue/src/views/ModsView.vue +++ b/src-vue/src/views/ModsView.vue @@ -3,7 +3,8 @@

Installed Mods:

- +

No mods were found.

+ {{mod.name}} @@ -30,6 +31,11 @@ export default defineComponent({ async mounted() { this.$store.commit('loadInstalledMods'); }, + computed: { + installedMods(): NorthstarMod[] { + return this.$store.state.installed_mods; + } + }, methods: { async updateWhichModsEnabled(mod: NorthstarMod) { this.global_load_indicator = true; -- cgit v1.2.3