ui: Adds a notice for non-primary intention creation (#11985)

This commit is contained in:
John Cowen 2022-01-12 11:50:09 +00:00 committed by GitHub
parent b50c7cbef9
commit 9192452885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

3
.changelog/11985.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
ui: Added a notice for non-primary intention creation
```

View File

@ -133,8 +133,26 @@ as |item readonly|}}
/>
{{/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" />
{{/if}}
{{/if}}
<form
{{on 'submit' (fn this.submit item api.submit)}}