ui: Adds a notice for non-primary intention creation (#11985)
This commit is contained in:
parent
a408644205
commit
4d62ee7353
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:improvement
|
||||||
|
ui: Added a notice for non-primary intention creation
|
||||||
|
```
|
|
@ -133,8 +133,26 @@ as |item readonly|}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (and api.isCreate this.isManagedByCRDs)}}
|
{{#if api.isCreate}}
|
||||||
|
{{#if (and (can 'use partitions') (not (can 'choose partitions' dc=@dc)))}}
|
||||||
|
<Notice
|
||||||
|
@type="info"
|
||||||
|
as |notice|>
|
||||||
|
<notice.Header>
|
||||||
|
<h3>
|
||||||
|
Cross-partition communication not supported
|
||||||
|
</h3>
|
||||||
|
</notice.Header>
|
||||||
|
<notice.Body>
|
||||||
|
<p>
|
||||||
|
Cross-partition communication is not supported outside of the primary datacenter. You will only be able to select namespaces for source and destination services.
|
||||||
|
</p>
|
||||||
|
</notice.Body>
|
||||||
|
</Notice>
|
||||||
|
{{/if}}
|
||||||
|
{{#if this.isManagedByCRDs}}
|
||||||
<Consul::Intention::Notice::CustomResource @type="warning" />
|
<Consul::Intention::Notice::CustomResource @type="warning" />
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<form
|
<form
|
||||||
{{on 'submit' (fn this.submit item api.submit)}}
|
{{on 'submit' (fn this.submit item api.submit)}}
|
||||||
|
|
Loading…
Reference in New Issue