Skip to content

Commit

Permalink
(temporary) ability to open data-menu from old button
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jan 6, 2025
1 parent b0880c8 commit a9c9fac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jdaviz/configs/default/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ def user_api(self):
def data_menu(self):
return self._data_menu.user_api

def _deprecated_data_menu(self):
# temporary method to allow for opening new data-menu from old button. This should
# be removed anytime after the old button is removed (likely in 4.3)
self.data_menu.open_menu()

@property
@deprecated(since="4.1", alternative="viewer.data_menu.data_labels_loaded")
def data_labels_loaded(self):
Expand Down
4 changes: 3 additions & 1 deletion jdaviz/container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
tile
icon
outlined
style="height: 42px; width: 42px; cursor: default">
style="height: 42px; width: 42px"
@click="$emit('call-viewer-method', {'id': viewer.id, 'method': '_deprecated_data_menu'})"
>
<v-icon>mdi-format-list-bulleted-square</v-icon>
</v-btn>
</j-tooltip>
Expand Down

0 comments on commit a9c9fac

Please sign in to comment.