From eb4a41b994a9ac40992c39349bd34c2ba850a050 Mon Sep 17 00:00:00 2001 From: Marvin SAURAYE Date: Wed, 22 Nov 2023 11:35:05 +0100 Subject: [PATCH 1/3] Remove useless code + Change btn style --- src/views/bouquets/BouquetEditView.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/bouquets/BouquetEditView.vue b/src/views/bouquets/BouquetEditView.vue index 52bbfa812..92094abaf 100644 --- a/src/views/bouquets/BouquetEditView.vue +++ b/src/views/bouquets/BouquetEditView.vue @@ -424,8 +424,6 @@ onMounted(() => {
- {{ availabilityEnum.ECO_AVAILABLE }} -- - {{ availabilityEnum.URL_AVAILABLE }} { From 7e894b77e8149bd2e5bf8d591677554900b3c148 Mon Sep 17 00:00:00 2001 From: Marvin SAURAYE Date: Wed, 22 Nov 2023 17:34:58 +0100 Subject: [PATCH 2/3] Change url for dataset eco --- src/views/bouquets/BouquetEditView.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/bouquets/BouquetEditView.vue b/src/views/bouquets/BouquetEditView.vue index 92094abaf..d29abf563 100644 --- a/src/views/bouquets/BouquetEditView.vue +++ b/src/views/bouquets/BouquetEditView.vue @@ -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) { @@ -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 }) @@ -643,6 +648,7 @@ onMounted(() => { > From 8800ed84be8a7ff7e0240028a012c35fce085c43 Mon Sep 17 00:00:00 2001 From: Marvin SAURAYE Date: Wed, 22 Nov 2023 17:39:18 +0100 Subject: [PATCH 3/3] Edit accordion --- src/views/bouquets/BouquetEditView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/bouquets/BouquetEditView.vue b/src/views/bouquets/BouquetEditView.vue index d29abf563..c60e0dbac 100644 --- a/src/views/bouquets/BouquetEditView.vue +++ b/src/views/bouquets/BouquetEditView.vue @@ -516,6 +516,7 @@ onMounted(() => { >