Skip to content

Commit

Permalink
Create CustomToolbarFilter to avoid problems with cluster's list
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 committed Aug 14, 2024
1 parent 87b152a commit 9049083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Toolbar,
ToolbarItem,
ToolbarContent,
ToolbarFilter,
InputGroup,
TextInput,
ToolbarProps,
Expand All @@ -29,6 +28,7 @@ import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
import { useDispatchDay1, useSelectorDay1 } from '../../store';
import { selectClustersUIState } from '../../store/slices/clusters/selectors';
import { CustomToolbarFilter } from './CustomToolbarFilter';

export type ClusterFiltersType = {
[key: string]: string[]; // value from clusterStatusLabels
Expand Down Expand Up @@ -127,7 +127,7 @@ const ClustersListToolbar: React.FC<ClustersListToolbarProps> = ({
</InputGroupItem>
</InputGroup>
</ToolbarItem>
<ToolbarFilter
<CustomToolbarFilter
chips={filters.status}
deleteChip={onDeleteChip}
deleteChipGroup={onDeleteChipGroup}
Expand All @@ -151,7 +151,7 @@ const ClustersListToolbar: React.FC<ClustersListToolbarProps> = ({
/>
))}
</Select>
</ToolbarFilter>
</CustomToolbarFilter>
<ToolbarButton
variant={ButtonVariant.primary}
onClick={() => history.push(`${routeBasePath}/clusters/~new`)}
Expand Down
Empty file.

0 comments on commit 9049083

Please sign in to comment.