Skip to content

Commit

Permalink
Merge pull request #17 from LCOGT/fix/simbad-url
Browse files Browse the repository at this point in the history
Use simbad url that is set in the configuration
  • Loading branch information
eheinrich authored Feb 9, 2021
2 parents 2de6dcf + 6af520e commit 1e5a921
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Target.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) +
Expand Down

0 comments on commit 1e5a921

Please sign in to comment.