From b836a772fcbe256937dbe53c235a53a91dfc6ecc Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Wed, 22 Jan 2020 09:19:01 -0500 Subject: [PATCH] ui: Checks env CONSUL_UI_DISABLE_REALTIME to show/hide blocking queries toggle (#7099) Adds a conditional that checks env CONSUL_UI_DISABLE_REALTIME to show/hide the Blocking Queries toggle in the Settings page. --- ui-v2/app/templates/settings.hbs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui-v2/app/templates/settings.hbs b/ui-v2/app/templates/settings.hbs index 330b5b3801..d95da24b7d 100644 --- a/ui-v2/app/templates/settings.hbs +++ b/ui-v2/app/templates/settings.hbs @@ -2,7 +2,7 @@ {{#app-view class="settings show"}} {{#block-slot name='header'}}

- Settings + Settings

{{/block-slot}} {{#block-slot name='content'}} @@ -16,25 +16,27 @@

Dashboard Links

- Add a link to the service detail page in the UI to get quick access to a service-wide metrics dashboard. Enter the dashboard URL into the field below. You can use the placeholders {{'{{Datacenter}}'}} and {{'{{Service.Name}}'}} which will be replaced with the name of the datacenter/service currently being viewed. + Add a link to the service detail page in the UI to get quick access to a service-wide metrics dashboard. Enter the dashboard URL into the field below. You can use the placeholders {{'{{Datacenter}}'}} and {{'{{Service.Name}}'}} which will be replaced with the name of the datacenter/service currently being viewed.

+ {{#if (not (env 'CONSUL_UI_DISABLE_REALTIME'))}}

Blocking Queries

Keep catalog info up-to-date without refreshing the page. Any changes made to services and nodes would be reflected in real time.

+ {{/if}} {{/block-slot}} {{/app-view}} -{{/hashicorp-consul}} \ No newline at end of file +{{/hashicorp-consul}}