Browse Source

ui: Don't show policy datacenter selector for non-default partitions (#11656)

pull/11666/head^2
John Cowen 3 years ago committed by GitHub
parent
commit
bda64f98b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .changelog/11656.txt
  2. 3
      ui/packages/consul-ui/app/components/policy-form/index.hbs

3
.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
```

3
ui/packages/consul-ui/app/components/policy-form/index.hbs

@ -105,6 +105,8 @@
</PowerSelect>
</label>
{{else}}
{{! only show Valid Datacenters for the default partition }}
{{#if (eq (or partition 'default') 'default')}}
<div class="type-toggle">
<span>Valid datacenters</span>
<label>
@ -112,6 +114,7 @@
<span>All</span>
</label>
</div>
{{/if}}
{{#if isScoped }}
<DataSource
@src={{uri '/*/*/*/datacenters'}}

Loading…
Cancel
Save