Skip to content

Commit

Permalink
Do not list locations in clusters in MobileList
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Aug 31, 2023
1 parent 781fb4a commit 244de47
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/MobileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { computed } from 'vue'
import TheMapInstance from '@/components/elements/TheMapInstance.vue'
import MobileList from '@/components/elements/MobileList.vue'
import FilterModal from '@/components/elements/FilterModal.vue'
import { useLocations } from '@/stores/locations'
import InteractionBar from '@/components/elements/InteractionBar.vue'
import Controls from '@/components/elements/Controls.vue'
import { useCluster } from '@/stores/cluster'
const locationsStore = useLocations()
const { locations } = storeToRefs(locationsStore)
const isListShown = computed(() => locations.value.length > 0)
const { singles } = storeToRefs(useCluster())
const isListShown = computed(() => singles.value.length > 0)
</script>

<template>
Expand All @@ -19,6 +18,6 @@ const isListShown = computed(() => locations.value.length > 0)
<TheMapInstance class="relative flex-1" />
<FilterModal class="absolute top-24 right-5" />
<Controls class="absolute bottom-6 right-6" :class="{ hidden: isListShown }" />
<MobileList :locations="locations" class="absolute bottom-0 w-full" />
<MobileList :locations="singles" class="absolute bottom-0 w-full" />
</div>
</template>

0 comments on commit 244de47

Please sign in to comment.