-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
per-config display of unit selections #3166
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
:popout_button="popout_button" | ||
:scroll_to.sync="scroll_to"> | ||
|
||
<v-row> | ||
<v-row v-if="has_spectral"> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
|
@@ -22,7 +22,20 @@ | |
></v-select> | ||
</v-row> | ||
|
||
<v-row> | ||
<v-row v-if="has_time"> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
:items="time_unit_items.map(i => i.label)" | ||
v-model="time_unit_selected" | ||
:label="api_hints_enabled ? 'plg.time_unit =' : 'Time Unit'" | ||
:class="api_hints_enabled ? 'api-hint' : null" | ||
hint="Global display unit for time axis." | ||
persistent-hint | ||
></v-select> | ||
</v-row> | ||
|
||
<v-row v-if="has_flux"> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
|
@@ -34,8 +47,8 @@ | |
persistent-hint | ||
></v-select> | ||
</v-row> | ||
|
||
<v-row v-if="config in ['cubeviz', 'imviz', 'mosviz']"> | ||
<v-row v-if="has_angle"> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
|
@@ -49,7 +62,7 @@ | |
></v-select> | ||
</v-row> | ||
|
||
<v-row> | ||
<v-row v-if="has_spectral"> | ||
<v-text-field | ||
v-model="sb_unit_selected" | ||
:label="api_hints_enabled ? 'plg.sb_unit' : 'Surface Brightness Unit'" | ||
|
@@ -60,27 +73,29 @@ | |
></v-text-field> | ||
</v-row> | ||
|
||
<v-row v-if="config == 'cubeviz'"> | ||
<v-divider></v-divider> | ||
</v-row> | ||
<div v-if="config == 'cubeviz'"> | ||
<v-row> | ||
<v-divider></v-divider> | ||
</v-row> | ||
|
||
<v-row v-if="config == 'cubeviz'"> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
:items="spectral_y_type_items.map(i => i.label)" | ||
v-model="spectral_y_type_selected" | ||
:label="api_hints_enabled ? 'plg.spectral_y_type =' : 'Spectral y-axis Type'" | ||
:class="api_hints_enabled ? 'api-hint' : null" | ||
hint="Select the y-axis physical type for the spectrum-viewer." | ||
persistent-hint | ||
></v-select> | ||
</v-row> | ||
<v-row> | ||
<v-select | ||
:menu-props="{ left: true }" | ||
attach | ||
:items="spectral_y_type_items.map(i => i.label)" | ||
v-model="spectral_y_type_selected" | ||
:label="api_hints_enabled ? 'plg.spectral_y_type =' : 'Flux or Surface Brightness'" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you missed this string in the rebase, unless you meant to change it back from the more general language. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope, missed that too 🤦 Reverted to "Spectral y-axis Type" |
||
:class="api_hints_enabled ? 'api-hint' : null" | ||
hint="Select the y-axis physical type for the spectrum-viewer." | ||
persistent-hint | ||
></v-select> | ||
</v-row> | ||
|
||
<v-alert type="warning" v-if="!pixar_sr_exists && config == 'cubeviz'"> | ||
PIXAR_SR FITS header keyword not found when parsing spectral cube. | ||
Flux/Surface Brightness will use default PIXAR_SR value of 1. | ||
</v-alert> | ||
<v-alert type="warning" v-if="!pixar_sr_exists"> | ||
PIXAR_SR FITS header keyword not found when parsing spectral cube. | ||
Flux/Surface Brightness will use default PIXAR_SR value of 1. | ||
</v-alert> | ||
</div> | ||
|
||
</j-tray-plugin> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per "convention," should this be "hidden" then if read only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traitlets cannot have leading underscores, and this is not exposed to the user