From 7254c28aaf5e890114ec5726ad4869fbab44d776 Mon Sep 17 00:00:00 2001 From: Rémy Raes Date: Sun, 11 Jun 2023 01:17:41 +0200 Subject: feat: Show outdated Thunderstore mods first (#385) * feat: add isThunderstoreModOutdated method to utils * feat: display a badge on menu if there are some outdated thunderstore mods * feat: always display outdated mods first * feat: fetch Thunderstore mods on mods view mount To display the count of outdated Thunderstore mods on mods main page, we need to fetch them. * style: Update src-vue/src/components/ModsMenu.vue * style: Update src-vue/src/utils/thunderstore/version.ts * style: Update src-vue/src/views/mods/ThunderstoreModsView.vue * docs: improve outdated mods comment * docs: add comment regarding versions ordering --- src-vue/src/views/ModsView.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src-vue/src/views/ModsView.vue') diff --git a/src-vue/src/views/ModsView.vue b/src-vue/src/views/ModsView.vue index 7c309832..a821dcda 100644 --- a/src-vue/src/views/ModsView.vue +++ b/src-vue/src/views/ModsView.vue @@ -37,6 +37,10 @@ export default defineComponent({ return { show_local_mods: true, } + }, + mounted() { + // Fetch Thunderstore mods to eventually display outdated mods count + this.$store.commit('fetchThunderstoreMods'); } }); -- cgit v1.2.3