From 4440af966bfbf0162bcf019e66f25d11aac2ba7e Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 20 Oct 2021 11:20:25 -0400 Subject: [PATCH] Fix captitalization in CrdResources component - Title should just be .spec.names.kind like the sidebar - Searching should just be .spec.names.plural Signed-off-by: Sebastian Malton --- src/renderer/components/+custom-resources/crd-resources.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/+custom-resources/crd-resources.tsx b/src/renderer/components/+custom-resources/crd-resources.tsx index 7c0e36639a..cb640160a6 100644 --- a/src/renderer/components/+custom-resources/crd-resources.tsx +++ b/src/renderer/components/+custom-resources/crd-resources.tsx @@ -89,11 +89,11 @@ export class CrdResources extends React.Component { searchFilters={[ item => item.getSearchFields(), ]} - renderHeaderTitle={crd.getResourceTitle()} + renderHeaderTitle={crd.getResourceKind()} customizeHeader={({ searchProps, ...headerPlaceholders }) => ({ searchProps: { ...searchProps, - placeholder: `Search ${crd.getResourceTitle()}...`, + placeholder: `Search ${crd.getNames().plural}...`, }, ...headerPlaceholders })}