Skip to content

Commit

Permalink
always show viewer-level options regardless of selected layer (#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry authored Nov 9, 2023
1 parent 3d461b6 commit f444c87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ New Features

- Colorbar now shown on top of the histogram in Plot Options for image viewers. [#2517]

- Reorder viewer and layer settings in Plot Options. [#2543]
- Reorder viewer and layer settings in Plot Options. [#2543, #2557]

Cubeviz
^^^^^^^
Expand Down
6 changes: 3 additions & 3 deletions jdaviz/configs/default/plugins/plot_options/plot_options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
:hint="multiselect ? 'Select viewers to set options simultaneously' : 'Select the viewer to set options.'"
/>

<div v-if="image_visible_sync.in_subscribed_states && image_visible_value">
<div v-if="image_color_mode_sync.in_subscribed_states">
<glue-state-sync-wrapper :sync="image_color_mode_sync" :multiselect="multiselect" @unmix-state="unmix_state('image_color_mode')">
<v-select
attach
Expand All @@ -69,14 +69,14 @@
</div>

<!-- GENERAL:AXES -->
<glue-state-sync-wrapper v-if="config !== 'imviz'":sync="axes_visible_sync" :multiselect="multiselect" @unmix-state="unmix_state('axes_visible')">
<glue-state-sync-wrapper v-if="axes_visible_sync.in_subscribed_states && config !== 'imviz'" :sync="axes_visible_sync" :multiselect="multiselect" @unmix-state="unmix_state('axes_visible')">
<v-switch
v-model="axes_visible_value"
label="Show Axes"
/>
</glue-state-sync-wrapper>

<glue-state-sync-wrapper v-if="line_visible_value && (!marker_visible_sync.in_subscribed_states || marker_visible_value)" :sync="uncertainty_visible_sync" :multiselect="multiselect" @unmix-state="unmix_state('uncertainty_visible')">
<glue-state-sync-wrapper v-if="uncertainty_visible_sync.in_subscribed_states" :sync="uncertainty_visible_sync" :multiselect="multiselect" @unmix-state="unmix_state('uncertainty_visible')">
<v-switch
v-model="uncertainty_visible_value"
label="Plot uncertainties"
Expand Down

0 comments on commit f444c87

Please sign in to comment.