diff --git a/jdaviz/app.py b/jdaviz/app.py
index 526a8e6a1f..7fd931a7f4 100644
--- a/jdaviz/app.py
+++ b/jdaviz/app.py
@@ -232,7 +232,9 @@ class ApplicationState(State):
'radialtocheck': read_icon(os.path.join(ICON_DIR, 'radialtocheck.svg'), 'svg+xml'),
'checktoradial': read_icon(os.path.join(ICON_DIR, 'checktoradial.svg'), 'svg+xml'),
'nuer': read_icon(os.path.join(ICON_DIR, 'right-east.svg'), 'svg+xml'),
- 'nuel': read_icon(os.path.join(ICON_DIR, 'left-east.svg'), 'svg+xml')
+ 'nuel': read_icon(os.path.join(ICON_DIR, 'left-east.svg'), 'svg+xml'),
+ 'api': read_icon(os.path.join(ICON_DIR, 'api.svg'), 'svg+xml'),
+ 'api-lock': read_icon(os.path.join(ICON_DIR, 'api_lock.svg'), 'svg+xml'),
}, docstring="Custom application icons")
viewer_icons = DictCallbackProperty({}, docstring="Indexed icons (numbers) for viewers across the app") # noqa
diff --git a/jdaviz/app.vue b/jdaviz/app.vue
index 9c7152f65c..3a529d5123 100644
--- a/jdaviz/app.vue
+++ b/jdaviz/app.vue
@@ -57,7 +57,7 @@
- mdi-code-tags
+
diff --git a/jdaviz/components/data_menu_add.vue b/jdaviz/components/data_menu_add.vue
index 2d41844281..21612b869e 100644
--- a/jdaviz/components/data_menu_add.vue
+++ b/jdaviz/components/data_menu_add.vue
@@ -66,6 +66,7 @@
v-if="api_hints_enabled"
:hover_api_hint.sync="hover_api_hint"
:lock_hover_api_hint.sync="lock_hover_api_hint"
+ :icons="icons"
/>
@@ -80,6 +81,6 @@ module.exports = {
lock_hover_api_hint: false,
}
},
- props: ['dataset_items', 'subset_tools', 'loaded_n_data', 'api_hints_enabled'],
+ props: ['dataset_items', 'subset_tools', 'loaded_n_data', 'api_hints_enabled', 'icons'],
};
\ No newline at end of file
diff --git a/jdaviz/components/hover_api_hint.vue b/jdaviz/components/hover_api_hint.vue
index 59fba111d8..5bf9e8a0a0 100644
--- a/jdaviz/components/hover_api_hint.vue
+++ b/jdaviz/components/hover_api_hint.vue
@@ -6,28 +6,22 @@
{{ hover_api_hint }}
-
+
- {e.stopPropagation(); $emit('update:lock_hover_api_hint', !lock_hover_api_hint); $emit('update:hover_api_hint', '')}"
>
- {e.stopPropagation(); $emit('update:lock_hover_api_hint', !lock_hover_api_hint); $emit('update:hover_api_hint', '')}"
- >
-
- mdi-code-tags
-
-
-
+
+
@@ -35,6 +29,6 @@
\ No newline at end of file
diff --git a/jdaviz/configs/default/plugins/data_menu/data_menu.vue b/jdaviz/configs/default/plugins/data_menu/data_menu.vue
index 686e1164d5..762efce4b5 100644
--- a/jdaviz/configs/default/plugins/data_menu/data_menu.vue
+++ b/jdaviz/configs/default/plugins/data_menu/data_menu.vue
@@ -141,6 +141,7 @@
:subset_tools="subset_tools"
:loaded_n_data="loaded_n_data"
:api_hints_enabled="api_hints_enabled"
+ :icons="icons"
@add-data="(data_label) => {add_data_to_viewer({data_label: data_label})}"
@create-subset="(subset_type) => {create_subset({subset_type: subset_type}); data_menu_open = false}"
>
@@ -208,6 +209,7 @@
v-if="api_hints_enabled"
:hover_api_hint.sync="hover_api_hint"
:lock_hover_api_hint.sync="lock_hover_api_hint"
+ :icons="icons"
/>