Explorar o código

HUE-7743 [frontend] Allow custom page mappings in embedded mode

Johan Ahlen %!s(int64=8) %!d(string=hai) anos
pai
achega
dd5fd49
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      desktop/core/src/desktop/templates/hue.mako

+ 4 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -1169,6 +1169,10 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           % endif
         ];
 
+        if (typeof HUE_EMBEDDED_PAGE_MAPPINGS !== 'undefined') {
+          pageMapping = pageMapping.concat(HUE_EMBEDDED_PAGE_MAPPINGS)
+        }
+
         pageMapping.forEach(function (mapping) {
           page(mapping.url, _.isFunction(mapping.app) ? mapping.app : function (ctx) {
             self.currentContextParams(ctx.params);