-
-
-
-
- mdi-menu-down
-
- mdi-pencil
-
-
- mdi-delete
-
-
- mdi-plus
-
-
-
-
- remove '{{selected}}' ephemeris?
-
-
- mdi-close
-
-
- mdi-delete
-
-
-
-
-
-
- mdi-close
-
-
- mdi-check
-
-
-
-
-
-
-
-
-
-
diff --git a/lcviz/helper.py b/lcviz/helper.py
index 92a629bf..6bc12845 100644
--- a/lcviz/helper.py
+++ b/lcviz/helper.py
@@ -11,11 +11,11 @@
__all__ = ['LCviz']
+custom_components = {}
_default_time_viewer_reference_name = 'flux-vs-time'
-custom_components = {'lcviz-editable-select': 'components/plugin_editable_select.vue',
- 'plugin-ephemeris-select': 'components/plugin_ephemeris_select.vue'}
+custom_components = {'plugin-ephemeris-select': 'components/plugin_ephemeris_select.vue'}
# Register pure vue component. This allows us to do recursive component instantiation only in the
# vue component file
diff --git a/lcviz/plugins/ephemeris/ephemeris.py b/lcviz/plugins/ephemeris/ephemeris.py
index 8929366c..d33b2f69 100644
--- a/lcviz/plugins/ephemeris/ephemeris.py
+++ b/lcviz/plugins/ephemeris/ephemeris.py
@@ -7,14 +7,13 @@
from jdaviz.core.custom_traitlets import FloatHandleEmpty
from jdaviz.core.events import (NewViewerMessage, ViewerAddedMessage, ViewerRemovedMessage)
from jdaviz.core.registries import tray_registry
-from jdaviz.core.template_mixin import (PluginTemplateMixin, SelectPluginComponent,
- DatasetSelectMixin)
+from jdaviz.core.template_mixin import (PluginTemplateMixin, DatasetSelectMixin,
+ SelectPluginComponent, EditableSelectPluginComponent)
from jdaviz.core.user_api import PluginUserApi
from lightkurve import periodogram, FoldedLightCurve
from lcviz.events import EphemerisComponentChangedMessage, EphemerisChangedMessage
-from lcviz.template_mixin import EditableSelectPluginComponent
from lcviz.viewers import PhaseScatterView
__all__ = ['Ephemeris']
@@ -33,7 +32,7 @@ class Ephemeris(PluginTemplateMixin, DatasetSelectMixin):
Only the following attributes and methods are available through the
public plugin API.
- * ``component`` (:class:`~lcviz.template_mixin.EditableSelectPluginComponent`):
+ * ``component`` (:class:`~jdaviz.template_mixin.EditableSelectPluginComponent`):
Label of the component corresponding to the active ephemeris.
* :attr:`t0`:
Zeropoint of the ephemeris.
@@ -93,14 +92,16 @@ def __init__(self, *args, **kwargs):
self._prev_wrap_at = _default_wrap_at
self.component = EditableSelectPluginComponent(self,
+ name='ephemeris',
mode='component_mode',
edit_value='component_edit_value',
items='component_items',
selected='component_selected',
manual_options=['default'],
on_add=self._on_component_add,
- on_rename=self._on_component_rename,
- on_remove=self._on_component_remove)
+ on_rename_after_selection=self._on_component_rename, # noqa
+ on_remove_after_selection=self._on_component_remove) # noqa
+
# force the original entry in ephemerides with defaults
self._change_component()
diff --git a/lcviz/plugins/ephemeris/ephemeris.vue b/lcviz/plugins/ephemeris/ephemeris.vue
index 093ecd74..4fe9418e 100644
--- a/lcviz/plugins/ephemeris/ephemeris.vue
+++ b/lcviz/plugins/ephemeris/ephemeris.vue
@@ -4,7 +4,7 @@
:link="'https://lcviz.readthedocs.io/en/'+vdocs+'/plugins.html#ephemeris'"
:popout_button="popout_button">
-