From f2d8c6fadf25704c1f81d0ef2b15fee0723fb522 Mon Sep 17 00:00:00 2001 From: kenia Date: Wed, 14 Apr 2021 17:45:52 -0400 Subject: [PATCH] Update catalog mock data for Mode attr --- ui/packages/consul-ui/app/templates/dc/services/instance.hbs | 2 +- ui/packages/consul-ui/mock-api/v1/catalog/connect/_ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/templates/dc/services/instance.hbs b/ui/packages/consul-ui/app/templates/dc/services/instance.hbs index 8e58a1f9f..50668d09d 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/instance.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/instance.hbs @@ -58,7 +58,7 @@ as |route|> - {{#if proxy.ServiceProxy.Mode}} + {{#if (eq proxy.ServiceProxy.Mode 'transparent')}} {{/if}} diff --git a/ui/packages/consul-ui/mock-api/v1/catalog/connect/_ b/ui/packages/consul-ui/mock-api/v1/catalog/connect/_ index 2af98f095..f25031c00 100644 --- a/ui/packages/consul-ui/mock-api/v1/catalog/connect/_ +++ b/ui/packages/consul-ui/mock-api/v1/catalog/connect/_ @@ -49,7 +49,7 @@ ${range(env('CONSUL_EXPOSED_COUNT', 3)).map((i) => ` `)} ] }, - "Mode": ${fake.random.boolean()}, + "Mode": "${fake.helpers.randomize(['', 'direct', 'transparent'])}", "DestinationServiceName": "${location.pathname.slice(4)}" ${ location.pathname.slice(4) === "service-0" ? ` ,