Skip to content

Commit

Permalink
future-proof for upstream changes (spacetelescope#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry authored and bmorris3 committed Dec 8, 2023
1 parent 2482a51 commit f2878fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lcviz/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

__all__ = ['LCviz']

custom_components = {}

_default_time_viewer_reference_name = 'flux-vs-time'

custom_components = {'plugin-ephemeris-select': 'components/plugin_ephemeris_select.vue'}
Expand Down Expand Up @@ -98,8 +96,12 @@ def __init__(self, *args, **kwargs):
lambda *args, **kwargs: _link_new_data(self.app, *args, **kwargs)
)

# inject the style widget to override app-css from lcviz_style.vue
self.app.set_style_template_file((__file__, 'lcviz_style.vue'))
# inject custom css from lcviz_style.vue (on top of jdaviz styles)
if hasattr(self.app, '_add_style'):
# will be guaranteed after jdaviz 3.9
self.app._add_style((__file__, 'lcviz_style.vue'))
else:
self.app.set_style_template_file((__file__, 'lcviz_style.vue'))

# set the link to read the docs
self.app.docs_link = "https://lcviz.readthedocs.io"
Expand Down

0 comments on commit f2878fb

Please sign in to comment.