From 4d62ee7353f861d3359fd31edb20e8ade2006bd9 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 12 Jan 2022 11:50:09 +0000 Subject: [PATCH] ui: Adds a notice for non-primary intention creation (#11985) --- .changelog/11985.txt | 3 +++ .../consul/intention/form/index.hbs | 20 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .changelog/11985.txt 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}}