From bda64f98b3374264b45d4e549aef024da6d4c033 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 1 Dec 2021 11:05:15 +0000 Subject: [PATCH] ui: Don't show policy datacenter selector for non-default partitions (#11656) --- .changelog/11656.txt | 3 +++ ui/packages/consul-ui/app/components/policy-form/index.hbs | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changelog/11656.txt diff --git a/.changelog/11656.txt b/.changelog/11656.txt new file mode 100644 index 0000000000..10dc472850 --- /dev/null +++ b/.changelog/11656.txt @@ -0,0 +1,3 @@ +```release-note:feature +ui: Don't offer a 'Valid Datacenters' option when editing policies for non-default partitions +``` diff --git a/ui/packages/consul-ui/app/components/policy-form/index.hbs b/ui/packages/consul-ui/app/components/policy-form/index.hbs index 3fe65ac9bd..61e2fa9081 100644 --- a/ui/packages/consul-ui/app/components/policy-form/index.hbs +++ b/ui/packages/consul-ui/app/components/policy-form/index.hbs @@ -105,6 +105,8 @@ {{else}} +{{! only show Valid Datacenters for the default partition }} +{{#if (eq (or partition 'default') 'default')}}
Valid datacenters
+{{/if}} {{#if isScoped }}