diff options
Diffstat (limited to 'src-vue/src')
-rw-r--r-- | src-vue/src/plugins/store.ts | 4 | ||||
-rw-r--r-- | src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index e2246c44..3d55d2a4 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -229,7 +229,9 @@ export const store = createStore<FlightCoreStore>({ // Remove some mods from listing const removedMods = ['Northstar', 'NorthstarReleaseCandidate', 'r2modman']; - state.thunderstoreMods = mods.filter((mod: ThunderstoreMod) => !removedMods.includes(mod.name)); + state.thunderstoreMods = mods.filter((mod: ThunderstoreMod) => { + return !removedMods.includes(mod.name) && !mod.is_deprecated; + }); }, async loadInstalledMods(state: FlightCoreStore) { let game_install = { diff --git a/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts index c14a83a0..6fddd06f 100644 --- a/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts +++ b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts @@ -5,5 +5,6 @@ export interface ThunderstoreMod { owner: string; rating_score: number; package_url: string; + is_deprecated: boolean; versions: ThunderstoreModVersion[]; } |