diff --git a/frontend/src/components/ACLPage/List/List.tsx b/frontend/src/components/ACLPage/List/List.tsx index 26155172b..71de007ca 100644 --- a/frontend/src/components/ACLPage/List/List.tsx +++ b/frontend/src/components/ACLPage/List/List.tsx @@ -22,10 +22,16 @@ import PlusIcon from 'components/common/Icons/PlusIcon'; import ActionButton from 'components/common/ActionComponent/ActionButton/ActionButton'; import * as S from './List.styled'; +import {ControlPanelWrapper} from "../../common/ControlPanel/ControlPanel.styled"; +import Search from "../../common/Search/Search"; +import {useSearchParams} from "react-router-dom"; const ACList: React.FC = () => { const { clusterName } = useAppParams<{ clusterName: ClusterName }>(); - const { data: aclList } = useAcls(clusterName); + const [searchParams] = useSearchParams(); + const aclList = useAcls(clusterName).data?.filter( + (acl) => acl.principal.match(searchParams.get('q') || '') + ); const { deleteResource } = useDeleteAcl(clusterName); const modal = useConfirm(true); const theme = useTheme(); @@ -162,6 +168,9 @@ const ACList: React.FC = () => { Create ACL + + +