From 6ff094976e661031dccbb4cf43b591a73904456f Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Thu, 5 Nov 2020 14:04:40 -0500 Subject: [PATCH] ui: Fix up typo for the UI config template url (#9109) --- ui/packages/consul-ui/app/routes/dc/services/show.js | 2 +- ui/packages/consul-ui/lib/startup/templates/head.html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/routes/dc/services/show.js b/ui/packages/consul-ui/app/routes/dc/services/show.js index 8b9a72ca3a..9ed3407244 100644 --- a/ui/packages/consul-ui/app/routes/dc/services/show.js +++ b/ui/packages/consul-ui/app/routes/dc/services/show.js @@ -16,7 +16,7 @@ export default Route.extend({ items: this.data.source( uri => uri`/${nspace}/${dc}/service-instances/for-service/${params.name}` ), - urls: this.config.get().dashboard_url_template, + urls: this.config.get().dashboard_url_templates, chain: null, proxies: [], topology: null, diff --git a/ui/packages/consul-ui/lib/startup/templates/head.html.js b/ui/packages/consul-ui/lib/startup/templates/head.html.js index 05b653a596..35c217e1f1 100644 --- a/ui/packages/consul-ui/lib/startup/templates/head.html.js +++ b/ui/packages/consul-ui/lib/startup/templates/head.html.js @@ -7,7 +7,7 @@ module.exports = ({ appName, environment, rootURL, config }) => ` JSON.stringify({ metrics_provider: 'prometheus', metrics_proxy_enabled: true, - dashboard_url_template: { + dashboard_url_templates: { service: 'https://example.com?{{Service.Name}}&{{Datacenter}}', }, })