diff --git a/.changelog/11985.txt b/.changelog/11985.txt new file mode 100644 index 000000000..d6b56857f --- /dev/null +++ b/.changelog/11985.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Added a notice for non-primary intention creation +``` diff --git a/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs b/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs index 0d3f875b4..e58b1ffb3 100644 --- a/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/intention/form/index.hbs @@ -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)))}} + + +

+ Cross-partition communication not supported +

+
+ +

+ Cross-partition communication is not supported outside of the primary datacenter. You will only be able to select namespaces for source and destination services. +

+
+
+ {{/if}} + {{#if this.isManagedByCRDs}} + {{/if}} {{/if}}