Skip to content

Commit

Permalink
FIX: Issue #164
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierArredondo committed Apr 2, 2020
1 parent 190d96e commit 5fce1c9
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/components/results/cards/cardBasicInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default {
if (this.hmsButtonText === "View H:M:S") {
this.hmsButtonText = "View RA/DEC";
let hhmmss = raDectoHMS(RA.value, DEC.value);
let hhmmss = raDectoHMS(RA.real_value, DEC.real_value);
this.ra = RA.value;
this.dec = DEC.value;
RA.value = hhmmss[0];
Expand Down Expand Up @@ -223,8 +223,22 @@ export default {
value: this.getEarlyClass(this.ztf_object.classearly)
}
: null,
{ column: "RA", value: this.ztf_object.meanra },
{ column: "DEC", value: this.ztf_object.meandec },
this.ztf_object.meanra
?
{
column: "RA",
value: this.ztf_object.meanra.toFixed(6),
real_value: this.ztf_object.meanra,
}
: null,
this.ztf_object.meandec
?
{
column: "DEC",
real_value: this.ztf_object.meandec,
value: this.ztf_object.meandec.toFixed(6)
}
: null,
this.$store.state.results.objectDetails.detections
? {
column: "Detections",
Expand Down Expand Up @@ -347,14 +361,14 @@ export default {
: "#"
}
];
}
},
},
watch:{
ztf_object(new_val,old_val){
if(new_val.oid != old_val.oid){
this.tns = null;
}
}
},
}
};
</script>

0 comments on commit 5fce1c9

Please sign in to comment.