Skip to content

Commit

Permalink
More accurate warning message for this case
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 7, 2023
1 parent ff222c2 commit 2b142ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@
@click:action="calculate_moment"
></plugin-add-results>

<v-row v-if="n_moment > 0 && output_unit_selected !== 'Spectral Unit' && reference_wavelength === 0">
<v-row v-if="n_moment > 0 && output_unit_selected === 'Flux'">
<span class="v-messages v-messages__message text--secondary" style="color: red !important">
Cannot calculate moment: Output unit set to invalid value from API.
</span>
</v-row>

<v-row v-else-if="n_moment > 0 && output_unit_selected !== 'Spectral Unit' && reference_wavelength === 0">
<span class="v-messages v-messages__message text--secondary" style="color: red !important">
Cannot calculate moment: Must set reference wavelength for output in velocity units.
</span>
Expand Down

0 comments on commit 2b142ef

Please # to comment.