mirror of https://github.com/hashicorp/consul
ui: Don't show policy datacenter selector for non-default partitions (#11656)
parent
26341f0b05
commit
bda64f98b3
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:feature
|
||||||
|
ui: Don't offer a 'Valid Datacenters' option when editing policies for non-default partitions
|
||||||
|
```
|
|
@ -105,6 +105,8 @@
|
||||||
</PowerSelect>
|
</PowerSelect>
|
||||||
</label>
|
</label>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{! only show Valid Datacenters for the default partition }}
|
||||||
|
{{#if (eq (or partition 'default') 'default')}}
|
||||||
<div class="type-toggle">
|
<div class="type-toggle">
|
||||||
<span>Valid datacenters</span>
|
<span>Valid datacenters</span>
|
||||||
<label>
|
<label>
|
||||||
|
@ -112,6 +114,7 @@
|
||||||
<span>All</span>
|
<span>All</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
{{#if isScoped }}
|
{{#if isScoped }}
|
||||||
<DataSource
|
<DataSource
|
||||||
@src={{uri '/*/*/*/datacenters'}}
|
@src={{uri '/*/*/*/datacenters'}}
|
||||||
|
|
Loading…
Reference in New Issue