Skip to content

Commit

Permalink
include orientation icons in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Nov 13, 2024
1 parent c9e9bfa commit 306ce37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jdaviz/configs/default/plugins/data_menu/data_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class DataMenu(TemplateMixin, LayerSelectMixin, DatasetSelectMixin):
viewer_id = Unicode().tag(sync=True)
viewer_reference = Unicode().tag(sync=True)

icons = Dict().tag(sync=True)
layer_icons = Dict().tag(sync=True) # read-only, see app.state.layer_icons
viewer_icons = Dict().tag(sync=True) # read-only, see app.state.viewer_icons

Expand Down Expand Up @@ -141,6 +142,8 @@ def data_not_in_viewer(data):
for k, v in self._viewer.toolbar.tools_data.items()
if k in SUBSET_TOOL_IDS.values()]

self.icons = {k: v for k, v in self.app.state.icons.items()}

@property
def user_api(self):
expose = ['layer', 'set_layer_visibility', 'toggle_layer_visibility',
Expand Down

0 comments on commit 306ce37

Please sign in to comment.