From 00c276886ebc72d8cf663d735b0209430f9e047b Mon Sep 17 00:00:00 2001 From: Mykhailo Semenchenko <45467774+th3M1ke@users.noreply.github.com> Date: Thu, 14 Jan 2021 03:19:00 +0200 Subject: [PATCH] Change UI configuration to a Javascript file (#677) Signed-off-by: Mykhailo Semenchenko Signed-off-by: vvvprabhakar --- packages/jaeger-ui/public/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/jaeger-ui/public/index.html b/packages/jaeger-ui/public/index.html index cb8a322b77..9a0f706b81 100644 --- a/packages/jaeger-ui/public/index.html +++ b/packages/jaeger-ui/public/index.html @@ -18,7 +18,12 @@ // Jaeger UI config data is embedded by the query-service via search-replace. // This is later merged with defaults into the redux `state.config` via // src/utils/config/get-config.js. + // JAEGER_CONFIG_JS + // the line above may be replaced by user-provided JS file that should define a UIConfig function. function getJaegerUiConfig() { + if(typeof window.UIConfig === 'function') { + return UIConfig(); + } const DEFAULT_CONFIG = null; const JAEGER_CONFIG = DEFAULT_CONFIG; return JAEGER_CONFIG;