Skip to content

Commit

Permalink
Display extra params that are numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinrich committed Jul 22, 2019
1 parent ee88c10 commit f4f3535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions static/js/request_detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<b-col class="font-weight-bold text-nowrap" v-if="configuration.target[idx]">{{ idx | formatField }}</b-col>
<b-col v-if="x" class="text-right">
<span v-if="idx === 'name'">{{ x }}</span>
<span v-else-if="isObjEmpty(x) && idx==='extra_params'">None</span>
<span v-else>{{ x | formatValue }}</span>
<em v-if="idx === 'ra'" class="text-muted"> ({{ x | raAsSexigesimal }})</em>
<em v-if="idx === 'dec'" class="text-muted"> ({{ x | decAsSexigesimal }})</em>
Expand Down
2 changes: 1 addition & 1 deletion static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function getFieldDescription(value) {
function formatJson(dict){
let stringVal = '';
for(let key in dict){
if (!_.isEmpty(dict[key])) {
if (!_.isEmpty(dict[key]) || _.isNumber(dict[key])) {
if (!_.isEmpty(stringVal)) {
stringVal += ', ';
}
Expand Down

0 comments on commit f4f3535

Please sign in to comment.