diff --git a/public/config/config.json b/public/config/config.json index bd054ee..7590503 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -4,5 +4,6 @@ "rtiBridgeUrl": "https://lco-edu-rti-bridge.lco.earth/", "targetNameUrl": "https://simbad2k.lco.global/", "configdbUrl": "http://configdb.lco.gtn/", + "datalabUrl": "https://datalab.lco.earth/", "demo": false } diff --git a/src/App.vue b/src/App.vue index 6862eef..3d56384 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,6 +34,7 @@ onMounted(async () => { configurationStore.thumbnailArchiveUrl = config.thumbnailArchiveUrl configurationStore.targetNameUrl = config.targetNameUrl configurationStore.configdbUrl = config.configdbUrl + configurationStore.datalabUrl = config.datalabUrl configurationStore.demo = config.demo configurationStore.isConfigLoaded = true } diff --git a/src/components/Images/MyGallery.vue b/src/components/Images/MyGallery.vue index bd9f902..6626ca9 100644 --- a/src/components/Images/MyGallery.vue +++ b/src/components/Images/MyGallery.vue @@ -55,6 +55,15 @@ const sessionsWithThumbnails = computed(() => { return sessions }) +function openDatalab (observationId, startDate, proposalId) { + if (!observationId || !startDate || !proposalId) { + console.error('Missing required parameters:', { observationId, startDate, proposalId }) + return + } + const datalabQueryUrl = `${configurationStore.datalabUrl}projects/?observationId=${observationId}&startDate=${startDate}&proposalId=${proposalId}` + window.open(datalabQueryUrl, 'datalabWindow') +} +