Skip to content

Commit 2590733

Browse files
committed
refactor: instantiate ThemeToggle with the map
1 parent c75bfad commit 2590733

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sepal_ui/sepalwidgets/vue_app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class MapApp(v.VuetifyTemplate):
3131
)
3232
).tag(sync=True)
3333

34+
def __init__(self, **kwargs):
35+
"""Instantiate the MapApp class."""
36+
kwargs["theme_toggle"] = [ThemeToggle()]
37+
super().__init__(**kwargs)
38+
3439

3540
class ThemeToggle(v.VuetifyTemplate):
3641

0 commit comments

Comments
 (0)