Skip to content

Commit

Permalink
feat: personnalise le title de la page sur les pages parcellaires/ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
thom4parisot committed Apr 8, 2024
1 parent ea94b71 commit e2b2b44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/exploitations/[numeroBio]/[recordId]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ meta:

<script setup>
import { computed, markRaw, ref, shallowRef } from 'vue'
import { useHead } from '@unhead/vue'
import { storeToRefs } from 'pinia'
import { bounds } from '@/components/Features/index.js'
Expand Down Expand Up @@ -99,6 +100,10 @@ const massActions = computed(() => permissions.isOc ? [
{ label: 'Modifier les cultures', component: markRaw(CultureTypeModal) },
] : [])
useHead({
title: `${record.version_name} pour ${operatorStore.operator.nom} (${operatorStore.operator.numeroBio})`
})
function focusOnOriginalBbox () {
zoomInto(featureStore.collection, { maxZoom: 12 })
}
Expand Down
5 changes: 5 additions & 0 deletions src/pages/exploitations/[numeroBio]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ meta:

<script setup>
import { defineAsyncComponent, markRaw, reactive, ref } from 'vue'
import { useHead } from '@unhead/vue'
import State from "@/components/Certification/State.vue"
import ActionDropdown from "@/components/ActionDropdown.vue"
Expand Down Expand Up @@ -201,6 +202,10 @@ const showYears = reactive({
[new Date().getFullYear() - 1]: true
})
useHead({
title: `Parcellaires ${operatorStore.operator.nom} (${operatorStore.operator.numeroBio})`
})
async function duplicateVersion(record_id) {
const recordSummary = operatorStore.records.find(record => record.record_id === record_id)
const record = await getRecord(record_id)
Expand Down

0 comments on commit e2b2b44

Please sign in to comment.