mirror of https://github.com/status-im/consul.git
ui: Lint get-environment.js (#9400)
This commit is contained in:
parent
6cd7ad3952
commit
a625745dad
|
@ -52,12 +52,12 @@ export default function(config = {}, win = window, doc = document) {
|
||||||
// forcing/providing amount of possible HTTP connections
|
// forcing/providing amount of possible HTTP connections
|
||||||
// re-setting the base url for the API etc
|
// re-setting the base url for the API etc
|
||||||
const operator = function(str, env) {
|
const operator = function(str, env) {
|
||||||
let protocol;
|
let protocol, dashboards, provider, proxy;
|
||||||
switch (str) {
|
switch (str) {
|
||||||
case 'CONSUL_UI_CONFIG':
|
case 'CONSUL_UI_CONFIG':
|
||||||
const dashboards = {};
|
dashboards = {};
|
||||||
const provider = env('CONSUL_METRICS_PROVIDER');
|
provider = env('CONSUL_METRICS_PROVIDER');
|
||||||
const proxy = env('CONSUL_METRICS_PROXY_ENABLED');
|
proxy = env('CONSUL_METRICS_PROXY_ENABLED');
|
||||||
dashboards.service = env('CONSUL_SERVICE_DASHBOARD_URL');
|
dashboards.service = env('CONSUL_SERVICE_DASHBOARD_URL');
|
||||||
if (provider) {
|
if (provider) {
|
||||||
ui_config.metrics_provider = provider;
|
ui_config.metrics_provider = provider;
|
||||||
|
|
Loading…
Reference in New Issue