diff --git a/BlueMapCommon/webapp/src/components/Menu/MarkerSet.vue b/BlueMapCommon/webapp/src/components/Menu/MarkerSet.vue index cbe4f507..65bfd2d7 100644 --- a/BlueMapCommon/webapp/src/components/Menu/MarkerSet.vue +++ b/BlueMapCommon/webapp/src/components/Menu/MarkerSet.vue @@ -6,9 +6,9 @@
-
- {{ markerSet.markers.length }} - {{ $t('markers.marker', markerSet.markers.length) }} +
+ {{ filteredMarkerCount }} + {{ $t('markers.marker', filteredMarkerCount) }}
{{ filteredMarkerSetCount }} @@ -46,6 +46,13 @@ export default { } return count; }, + filteredMarkerCount() { + let count = 0; + for (let marker of this.markerSet.markers) { + if (marker.listed) count++; + } + return count; + }, label() { if (this.markerSet.id === "bm-players") return this.$t("players.title"); return this.markerSet.label;