mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Fix unlisted markers being counted
This commit is contained in:
parent
6ce32c56dc
commit
d6e4e69417
@ -6,9 +6,9 @@
|
||||
<SwitchHandle :on="markerSet.visible" v-if="markerSet.toggleable"/>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<div v-if="markerSet.markers.length > 0">
|
||||
{{ markerSet.markers.length }}
|
||||
{{ $t('markers.marker', markerSet.markers.length) }}
|
||||
<div v-if="filteredMarkerCount > 0">
|
||||
{{ filteredMarkerCount }}
|
||||
{{ $t('markers.marker', filteredMarkerCount) }}
|
||||
</div>
|
||||
<div v-if="filteredMarkerSetCount > 0">
|
||||
{{ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user