Skip to content

Commit

Permalink
Merge pull request #652 from Mikado8231/fix-dashcustom-config
Browse files Browse the repository at this point in the history
fix: DashCustom config with super #649
  • Loading branch information
flobz authored Nov 12, 2023
2 parents 197c2b1 + 97e0a8a commit 56d96d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions psa_car_controller/web/dash_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ def __init__(self, *args, **kwargs):
self.requests_pathname_external_prefix = self.config.requests_pathname_prefix

def _config(self):
config = super()._config()
# pieces of config needed by the front end
config = {
config.update({
"url_base_pathname": self.config.url_base_pathname,
"requests_pathname_prefix": self.requests_pathname_external_prefix,
"ui": self._dev_tools.ui,
"props_check": self._dev_tools.props_check,
"show_undo_redo": self.config.show_undo_redo,
"suppress_callback_exceptions": self.config.suppress_callback_exceptions,
"update_title": self.config.update_title,
}
})
if self._dev_tools.hot_reload:
config["hot_reload"] = {
# convert from seconds to msec as used by js `setInterval`
Expand Down

0 comments on commit 56d96d5

Please sign in to comment.