diff --git a/CHANGES.rst b/CHANGES.rst
index 1c6070a52c..32231ff4d8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,7 +15,7 @@ New Features
- "Export Plot" plugin is now replaced with the more general "Export" plugin. [#2722]
-- "Export" plugin supports exporting plugin tables, data and non-composite spatial subsets.[#2755, #2760, #2772, #2770]
+- "Export" plugin supports exporting plugin tables, data and non-composite spatial subsets.[#2755, #2760, #2772, #2770, #2780]
- Opening a plugin in the tray (from the API or the toolbar buttons) now scrolls to that plugin.
[#2768]
diff --git a/jdaviz/configs/default/plugins/export/export.py b/jdaviz/configs/default/plugins/export/export.py
index aa215bb27f..1a854d2aea 100644
--- a/jdaviz/configs/default/plugins/export/export.py
+++ b/jdaviz/configs/default/plugins/export/export.py
@@ -89,6 +89,14 @@ class Export(PluginTemplateMixin, ViewerSelectMixin, SubsetSelectMixin,
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
+ # NOTE: if adding export support for non-plugin products, also update the language
+ # in the UI as well as in _set_dataset_not_supported_msg
+ self.dataset.filters = ['is_not_wcs_only', 'not_child_layer',
+ 'from_plugin']
+
+ # NOTE: if/when adding support for spectral subsets, update the languange in the UI
+ self.subset.filters = ['is_spatial']
+
self.plot = SelectPluginComponent(self,
items='plot_items',
selected='plot_selected',
@@ -237,6 +245,8 @@ def _set_subset_not_supported_msg(self, msg=None):
def _set_dataset_not_supported_msg(self, msg=None):
if self.dataset.selected_obj is not None:
if self.dataset.selected_obj.meta.get("Plugin", None) is None:
+ # NOTE: should not be a valid choice due to dataset filters, but we'll include
+ # another check here.
self.data_invalid_msg = "Data export is only available for plugin generated data."
elif not isinstance(self.dataset.selected_obj, (Spectrum1D, CCDData)):
self.data_invalid_msg = "Export is not implemented for this type of data"
diff --git a/jdaviz/configs/default/plugins/export/export.vue b/jdaviz/configs/default/plugins/export/export.vue
index 9b999e45e3..3ac3e83738 100644
--- a/jdaviz/configs/default/plugins/export/export.vue
+++ b/jdaviz/configs/default/plugins/export/export.vue
@@ -13,6 +13,9 @@
>
Viewers
+
+ Export viewer plot as an image.
+
Data
+
+ Export data generated by plugins.
+
Subsets
- Save subset as astropy region.
+ Export spatial subset as astropy region.
Plugin Tables
+
+ Export table from a plugin to a file.
+
Plugin Plots
+
+ Export plot from a plugin as an image.
+