File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
web-client/src/components Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 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" >
3636</template >
3737
3838<script setup lang="ts">
39- import { ref } from ' vue' ;
39+ import { ref , computed } from ' vue' ;
4040import InputText from ' primevue/inputtext' ;
4141import Button from ' primevue/button' ;
4242import SrLabelInfoIconButton from ' ./SrLabelInfoIconButton.vue' ;
@@ -49,7 +49,15 @@ const props = defineProps<{
4949const 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+ });
5361const newField = ref (' ' );
5462
5563function addField() {
Original file line number Diff line number Diff line change 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"
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 >
You can’t perform that action at this time.
0 commit comments