From 6af520ecdea001c7615b70ce74dfd26a8a7582d9 Mon Sep 17 00:00:00 2001 From: eheinrich Date: Mon, 8 Feb 2021 11:49:38 -0800 Subject: [PATCH] Use simbad url that is set in the configuration --- src/components/Target.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Target.vue b/src/components/Target.vue index 908c93c..f74a450 100644 --- a/src/components/Target.vue +++ b/src/components/Target.vue @@ -279,6 +279,11 @@ export default { dec_help_text: this.decHelp(this.target.dec) }; }, + computed: { + simbadServiceUrl: function() { + return this.$store.state.urls.simbadService; + } + }, watch: { 'target.name': _.debounce(function(name) { this.lookingUP = true; @@ -293,7 +298,8 @@ export default { target_type = 'NON_SIDEREAL'; } this.lookupReq = $.getJSON( - 'https://simbad2k.lco.global/' + + this.simbadServiceUrl + + '/' + encodeURIComponent(name) + '?target_type=' + encodeURIComponent(target_type) +