mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
feat(helm): update helm view [r8s-256] (#582)
Co-authored-by: Cara Ryan <cara.ryan@portainer.io> Co-authored-by: James Player <james.player@portainer.io> Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
parent
46eddbe7b9
commit
0ca9321db1
57 changed files with 2635 additions and 222 deletions
|
@ -16,6 +16,7 @@ type Props = {
|
|||
renderTableActions?(): ReactNode;
|
||||
description?: ReactNode;
|
||||
titleId?: string;
|
||||
includeSearch?: boolean;
|
||||
} & AutomationTestingProps;
|
||||
|
||||
export function DatatableHeader({
|
||||
|
@ -28,8 +29,9 @@ export function DatatableHeader({
|
|||
description,
|
||||
titleId,
|
||||
'data-cy': dataCy,
|
||||
includeSearch = !!title,
|
||||
}: Props) {
|
||||
if (!title) {
|
||||
if (!title && !includeSearch) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -50,12 +52,12 @@ export function DatatableHeader({
|
|||
return (
|
||||
<Table.Title
|
||||
id={titleId}
|
||||
label={title}
|
||||
label={title ?? ''}
|
||||
icon={titleIcon}
|
||||
description={description}
|
||||
data-cy={dataCy}
|
||||
>
|
||||
{searchBar}
|
||||
{includeSearch && searchBar}
|
||||
{tableActions}
|
||||
{tableTitleSettings}
|
||||
</Table.Title>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue