Skip to content

Commit 88105de

Browse files
authored
Merge pull request #678 from SlideRuleEarth/carlos-dev3
fix links to documentation #677
2 parents b8f0e14 + b8bd09f commit 88105de

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

web-client/src/components/SrAncillaryFieldEditor.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<SrLabelInfoIconButton
55
:label="label"
66
tooltipText="ancillary fields to add to the response dataframe"
7-
tooltipUrl="https://slideruleearth.io/web/rtd/user_guide/how_tos/ancillary_fields.html#including-an-ancillary-field-in-an-atl06p-request"
7+
:tooltipUrl="computedUrl"
88
labelFontSize="large"
99
/>
1010
<div class="sr-ancillary-input-row">
@@ -36,7 +36,7 @@
3636
</template>
3737

3838
<script setup lang="ts">
39-
import { ref } from 'vue';
39+
import { ref,computed } from 'vue';
4040
import InputText from 'primevue/inputtext';
4141
import Button from 'primevue/button';
4242
import SrLabelInfoIconButton from './SrLabelInfoIconButton.vue';
@@ -49,7 +49,15 @@ const props = defineProps<{
4949
const emit = defineEmits<{
5050
(e: 'update:modelValue', value: string[]): void;
5151
}>();
52-
52+
const computedUrl = computed(() => {
53+
if(props.label?.includes('atl06')) {
54+
return `https://slideruleearth.io/web/rtd/user_guide/how_tos/ancillary_fields.html#including-an-ancillary-field-in-an-atl06p-request`;
55+
} else if (props.label?.includes('atl03 Corr')) {
56+
return `https://slideruleearth.io/web/rtd/user_guide/how_tos/ancillary_fields.html#including-an-ancillary-field-in-an-atl03sp-request`;
57+
} else {
58+
return `https://slideruleearth.io/web/rtd/user_guide/how_tos/ancillary_fields.html#including-ancillary-fields`;
59+
}
60+
});
5361
const newField = ref('');
5462
5563
function addField() {

web-client/src/components/SrRasterParams.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
label="Catalog"
100100
labelFontSize='large'
101101
tooltipText='geojson formatted stac query response (obtained through the sliderule.earthdata.stac Python API)'
102-
tooltipUrl="https://slideruleearth.io/web/rtd/user_guide/SlideRule.html#raster-sampling"
102+
tooltipUrl="https://slideruleearth.io/web/rtd/user_guide/raster_sampling.html#providing-your-own-catalog"
103103
/>
104104
<TextArea
105105
v-model="rasterParamsStore.catalog"
@@ -121,7 +121,7 @@
121121
:menuOptions="rasterParamsStore.bandOptions"
122122
:default="[rasterParamsStore.bandOptions[0]]"
123123
tooltipText="List of bands to read out of the raster, or a predefined algorithm that combines bands for a given dataset"
124-
tooltipUrl="https://slideruleearth.io/web/rtd/user_guide/SlideRule.html#raster-sampling"
124+
tooltipUrl="https://slideruleearth.io/web/rtd/user_guide/raster_sampling.html#parameters"
125125
/>
126126
</div>
127127
</div>

0 commit comments

Comments
 (0)