Эх сурвалжийг харах

HUE-7743 [core] Add a config flag to enable embedded mode

Johan Ahlen 8 жил өмнө
parent
commit
4142c1a

+ 4 - 0
desktop/conf.dist/hue.ini

@@ -34,6 +34,10 @@
   # Choose whether to still allow users to enable the old Hue 3 interface.
   ## disable_hue_3=false
 
+  # Choose whether the Hue pages are embedded or not. This will improve the rendering of Hue when added inside a
+  # container element.
+  ## embedded_mode=false
+
   # A comma-separated list of available Hue load balancers
   ## hue_load_balancer=
 

+ 4 - 0
desktop/conf/pseudo-distributed.ini.tmpl

@@ -38,6 +38,10 @@
   # Choose whether to still allow users to enable the old Hue 3 interface.
   ## disable_hue_3=false
 
+  # Choose whether the Hue pages are embedded or not. This will improve the rendering of Hue when added inside a
+  # container element.
+  ## embedded_mode=false
+
   # A comma-separated list of available Hue load balancers
   ## hue_load_balancer=
 

+ 7 - 0
desktop/core/src/desktop/conf.py

@@ -1348,6 +1348,13 @@ ENABLE_SQL_SYNTAX_CHECK = Config(
   help=_('Choose whether to enable SQL syntax check or not.')
 )
 
+EMBEDDED_MODE = Config(
+  key='embedded_mode',
+  default=False,
+  type=coerce_bool,
+  help=_('Choose whether Hue is embedded or not.')
+)
+
 USE_NEW_AUTOCOMPLETER = Config( # This now refers to the new autocomplete dropdown
   key='use_new_autocompleter',
   default=True,