Skip to content

Commit f32e878

Browse files
authored
fix API hint in data-menu to access viewer (#3695)
1 parent d0c3ec0 commit f32e878

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGES.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
New Features
55
------------
66

7-
- The Markers plugin now includes a Distance Tool to interactively measure and log pixel, on-sky, and axis-separated (dx, dy)
7+
- The Markers plugin now includes a Distance Tool to interactively measure and log pixel, on-sky, and axis-separated (dx, dy)
88
distances between points in any viewer. [#3609]
99

1010
- The Plot Options plugin now highlights the tab for the active (top-most) data layer
@@ -167,6 +167,8 @@ Bug Fixes
167167
transform does not use units, which was previously causing issues when
168168
aligning by WCS. [#3658]
169169

170+
- Fixed API hints for viewers in the data-menu. [#3695]
171+
170172
Cubeviz
171173
^^^^^^^
172174

jdaviz/configs/default/plugins/data_menu/data_menu.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<v-list-item v-if="api_hints_enabled" style="min-height: 12px">
6363
<v-list-item-content>
6464
<span class="api-hint">
65-
<b>dm = {{ api_hints_obj }}.viewers['{{viewer_id}}'].data_menu</b>
65+
<b>dm = {{ api_hints_obj }}.viewers['{{viewer_reference}}'].data_menu</b>
6666
</span>
6767
</v-list-item-content>
6868
</v-list-item>
@@ -189,9 +189,9 @@
189189
</span>
190190
</v-list-item-content>
191191
<v-list-item-action>
192-
<j-tooltip
192+
<j-tooltip
193193
:tooltipcontent="api_hints_enabled ? '' : item.is_sonified ? 'Toggle sonification' :'Toggle visibility'"
194-
>
194+
>
195195
<plugin-switch
196196
:value="item.visible"
197197
@click="(value) => {set_layer_visibility({layer: item.label, value: value})}"

0 commit comments

Comments
 (0)