Skip to content

Commit

Permalink
Change url for dataset eco
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin SAURAYE committed Nov 22, 2023
1 parent 7054003 commit 7e894b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/bouquets/BouquetEditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ const availabilityEnum = {
URL_AVAILABLE: 'url available'
}
const goToDatasetPage = (id) => {
const url = config.website.menu_items.find((link) => link.linkPage === '/datasets')
return `${url.linkPage}/${id}`
}
const addDatasetsPropertiesToExtras = async () => {
const setUri = urlData.value ? urlData.value : null
if (title.value && description.value) {
Expand All @@ -122,7 +127,7 @@ const addDatasetsPropertiesToExtras = async () => {
datasetsProperties.value[datasetsPropertiesKey].push({
title: title.value,
description: description.value,
uri: dataset.page,
uri: goToDatasetPage(selectedDataset.value.id),
id: selectedDataset.value.id,
available: availabilityEnum.ECO_AVAILABLE
})
Expand Down Expand Up @@ -643,6 +648,7 @@ onMounted(() => {
>
<DsfrAccordion
:title="datasetProperties.title"
:id="datasetProperties.id"
:expanded-id="datasetProperties.id"
@expand="datasetProperties.id = $event"
>
Expand Down

0 comments on commit 7e894b7

Please sign in to comment.