From ca27fd06cfe0a762f300467c9282b9a68fca47e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bonnet?= Date: Fri, 25 Oct 2024 17:42:25 +0200 Subject: [PATCH] fix(container-registry): disabled demo cluster (#1737) --- .../lib/container-registry-form/container-registry-form.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx b/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx index 0381afae0c5..94204bfb939 100644 --- a/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx +++ b/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx @@ -199,7 +199,8 @@ export function ContainerRegistryForm({ ContainerRegistryKindEnum.GITLAB_CR, () => true ) - .otherwise(() => false) + .otherwise(() => false) || + cluster?.is_demo } /> )} @@ -229,6 +230,7 @@ export function ContainerRegistryForm({ }} value={field.value} label="Login type" + disabled={cluster?.is_demo} error={error?.message} options={[ {