aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/SettingsView.vue
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2023-06-08 01:53:46 +0200
committerGitHub <noreply@github.com>2023-06-08 01:53:46 +0200
commitdfbf3aebde6cf024e6b6cd87d58af239cf3d63dc (patch)
tree2a0007a054b485f21b5a151a966cd15fe3fe8943 /src-vue/src/views/SettingsView.vue
parent24f6d28b3c2421fd20cd7f3036cdfed98f89e755 (diff)
downloadFlightCore-dfbf3aebde6cf024e6b6cd87d58af239cf3d63dc.tar.gz
FlightCore-dfbf3aebde6cf024e6b6cd87d58af239cf3d63dc.zip
fix: Don't show deprecated mods (#382)
* fix: don't show deprecated mods * feat: add setting to settings view * feat: display deprecated mod cards in red
Diffstat (limited to 'src-vue/src/views/SettingsView.vue')
-rw-r--r--src-vue/src/views/SettingsView.vue20
1 files changed, 20 insertions, 0 deletions
diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue
index 2f2f5019..c4e94c80 100644
--- a/src-vue/src/views/SettingsView.vue
+++ b/src-vue/src/views/SettingsView.vue
@@ -40,6 +40,18 @@
</el-input>
</div>
+ <div class="fc_parameter__panel">
+ <h3>{{ $t('settings.show_deprecated_mods') }}</h3>
+ <h6>
+ {{ $t('settings.show_deprecated_mods_desc1') }}<br/>
+ {{ $t('settings.show_deprecated_mods_desc2') }}
+ </h6>
+ <span>
+ {{ $t('settings.show_deprecated_mods') }}
+ <el-switch v-model="showDeprecatedMods"></el-switch>
+ </span>
+ </div>
+
<!-- Interface localization -->
<div class="fc_parameter__panel">
<h3>{{ $t('settings.language') }}</h3>
@@ -96,6 +108,14 @@ export default defineComponent({
}
},
computed: {
+ showDeprecatedMods: {
+ get(): boolean {
+ return this.$store.state.search.showDeprecatedMods;
+ },
+ set(value: boolean) {
+ this.$store.state.search.showDeprecatedMods = value;
+ }
+ },
flightcoreVersion(): string {
return this.$store.state.flightcore_version;
},