aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-12-02 01:17:25 +0100
committerGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-12-02 01:48:27 +0100
commit88230f2c79ed5713994b0817b64b956cf07b60ad (patch)
tree6e140d6f77a22474764ad04539d5d7bcbeb59281 /src-vue/src
parent32c5f61f434fc7572d0382e6f67cb8d4232186e2 (diff)
downloadFlightCore-88230f2c79ed5713994b0817b64b956cf07b60ad.tar.gz
FlightCore-88230f2c79ed5713994b0817b64b956cf07b60ad.zip
fix: do not display deprecated mods in thunderstore view
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/plugins/store.ts4
-rw-r--r--src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts1
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[];
}