Skip to content

Commit

Permalink
Update panels
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Sep 9, 2022
1 parent ef54cdc commit 6eec2e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/components/Map/utils/geojsonOptions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { generateHue } from "@/utils/color"
import { squareMarker } from "../markers"
import L from 'leaflet'

Expand All @@ -19,7 +18,6 @@ export default ({
},

style: (feature) => {
console.log(feature.properties?.base?.type)
if (feature.properties?.base?.type === 'AssertedDistribution') {
return {
color: 'rgb(var(--color-map-asserted))',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@
</div>

<div>
<div v-if="isExpanded">
<span v-html="citation.source.label" />
<span v-if="citation.pages">
:{{ citation.pages }}
</span>
</div>

<span
v-if="isExpanded"
v-html="sourceLabel"
/>
<span
v-else
:title="citation.source.label"
Expand All @@ -41,15 +38,20 @@
</template>

<script setup>
import { ref } from 'vue'
import { ref, computed } from 'vue'
defineProps({
const props = defineProps({
citation: {
type: Object,
required: true
}
})
const isExpanded = ref(false)
const sourceLabel = computed(() =>
[
props.citation.source.label,
props.citation.pages
].filter(Boolean).join(':'))
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<VCard>
<VCardHeader>
<h1 class="text-md">
Type
Type designation
</h1>
</VCardHeader>
<VCardContent class="text-sm">
Expand Down

0 comments on commit 6eec2e3

Please sign in to comment.