From aa6130569189251f594a16c7a0ca0ecf062c390d Mon Sep 17 00:00:00 2001 From: chriskari Date: Fri, 13 Sep 2024 09:17:32 +0200 Subject: [PATCH] feat: disableCreate of resourceQuotas on all namespaces overview --- src/resources/Namespaces/AllNamespacesDetails.js | 1 + src/resources/ResourceQuotas/ResourceQuotasList.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/resources/Namespaces/AllNamespacesDetails.js b/src/resources/Namespaces/AllNamespacesDetails.js index ef53a6c161..a7df25aa17 100644 --- a/src/resources/Namespaces/AllNamespacesDetails.js +++ b/src/resources/Namespaces/AllNamespacesDetails.js @@ -30,6 +30,7 @@ export function AllNamespacesDetails() { namespace: '-all-', isCompact: true, showTitle: true, + disableCreate: true, }; const ResourceQuotasList = ( diff --git a/src/resources/ResourceQuotas/ResourceQuotasList.tsx b/src/resources/ResourceQuotas/ResourceQuotasList.tsx index de251aaa72..e015d444e3 100644 --- a/src/resources/ResourceQuotas/ResourceQuotasList.tsx +++ b/src/resources/ResourceQuotas/ResourceQuotasList.tsx @@ -61,7 +61,7 @@ export function ResourceQuotasList(props: any) { ); }; - const createButton = ( + const createButton = !props?.disableCreate ? ( - ); + ) : null; return (