Skip to content

Commit

Permalink
Merge pull request #103 from LCOGT/feature/display_target_name_on_suc…
Browse files Browse the repository at this point in the history
…essful_search

Update Compose.vue
  • Loading branch information
mgdaily authored Jul 1, 2024
2 parents 893621b + d8e72ed commit ec2208d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Compose.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
:errors="slotProps.data.errors"
@input="doTargetLookup(slotProps.data.target, slotProps.update)"
>
<div v-show="targetLookup.busy || targetLookup.failed" slot="extra-help-text">
<div slot="extra-help-text">
<i v-show="targetLookup.busy" class="fa fa-spinner fa-spin fa-fw" /> {{ targetLookup.text }}
</div>
</ocs-custom-field>
Expand Down Expand Up @@ -958,6 +958,7 @@ export default {
target.meandist = _.get(data, ['semimajor_axis'], null);
target.meananom = _.get(data, ['mean_anomaly'], null);
target.dailymot = _.get(data, ['mean_daily_motion'], null);
this.targetLookup.text = `Found matching object: ${_.get(data, ['name'], null)}`;
} else {
this.targetLookup.text = 'Could not find any matching objects';
this.targetLookup.failed = true;
Expand Down

0 comments on commit ec2208d

Please sign in to comment.