aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2023-05-06 15:55:33 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2023-05-06 15:55:33 +0200
commitfd9ab50610746f7aea2f11097f816c8ac959c917 (patch)
treebde314f9d3e3706f870be194fa84c8383c107252
parent91ceec21c49dcfb8268e1a519345c1f7b4fbb468 (diff)
downloadFlightCore-feat/badge-count-oudated-mods.tar.gz
FlightCore-feat/badge-count-oudated-mods.zip
temp: Test badge iconfeat/badge-count-oudated-mods
Static value for testing. Value should reflect number of outdated mods
-rw-r--r--src-vue/src/App.vue4
-rw-r--r--src-vue/src/components/ModsMenu.vue1
2 files changed, 4 insertions, 1 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue
index f80e000d..75b3c883 100644
--- a/src-vue/src/App.vue
+++ b/src-vue/src/App.vue
@@ -69,7 +69,9 @@ export default {
>
<el-menu-item index="/">{{ $t('menu.play') }}</el-menu-item>
<el-menu-item index="/changelog">{{ $t('menu.changelog') }}</el-menu-item>
- <el-menu-item index="/mods">{{ $t('menu.mods') }}</el-menu-item>
+ <el-menu-item index="/mods">{{ $t('menu.mods') }}
+ <el-badge :value="3" />
+ </el-menu-item>
<el-menu-item index="/settings">{{ $t('menu.settings') }}</el-menu-item>
<el-menu-item index="/dev" v-if="$store.state.developer_mode">{{ $t('menu.dev') }}</el-menu-item>
</el-menu>
diff --git a/src-vue/src/components/ModsMenu.vue b/src-vue/src/components/ModsMenu.vue
index 656c05a6..9f6afdbd 100644
--- a/src-vue/src/components/ModsMenu.vue
+++ b/src-vue/src/components/ModsMenu.vue
@@ -12,6 +12,7 @@
<el-menu-item index="2" @click="$emit('showLocalMods', false)">
<el-icon><Connection /></el-icon>
<span>{{ $t('mods.menu.online') }}</span>
+ <el-badge :value="3" />
</el-menu-item>
<!-- Search inputs -->