From d2e23b756128694a503ceaa739312d185fc1eb00 Mon Sep 17 00:00:00 2001 From: Mathieu Anderson Date: Wed, 10 May 2023 17:09:08 +0200 Subject: [PATCH] fix(coral): Make all env available when using prefix in ACL request Signed-off-by: Mathieu Anderson --- .../topics/acl-request/fields/EnvironmentField.tsx | 13 ++++++++++++- .../topics/acl-request/forms/TopicProducerForm.tsx | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/coral/src/app/features/topics/acl-request/fields/EnvironmentField.tsx b/coral/src/app/features/topics/acl-request/fields/EnvironmentField.tsx index 023bb8b93b..45a008a0d8 100644 --- a/coral/src/app/features/topics/acl-request/fields/EnvironmentField.tsx +++ b/coral/src/app/features/topics/acl-request/fields/EnvironmentField.tsx @@ -5,13 +5,23 @@ import { ExtendedEnvironment } from "src/app/features/topics/acl-request/queries interface EnvironmentFieldProps { environments: ExtendedEnvironment[]; selectedTopic?: string; + prefixed?: boolean; } const getOptions = ( environments: ExtendedEnvironment[], + prefixed: boolean, topicName?: string ) => { return environments.map((env) => { + if (prefixed) { + return ( + + ); + } + if (env.topicNames.length === 0) { return (