File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
frontend/src/components/ACLPage/List Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import ResourcePageHeading from 'components/common/ResourcePageHeading/ResourceP
2626import BreakableTextCell from 'components/common/NewTable/BreakableTextCell' ;
2727import { useQueryPersister } from 'components/common/NewTable/ColumnFilter' ;
2828import { ActionPermissionWrapper } from 'components/common/ActionComponent' ;
29+ import ClusterContext from 'components/contexts/ClusterContext' ;
2930
3031import * as S from './List.styled' ;
3132
@@ -35,6 +36,7 @@ const ACList: React.FC = () => {
3536 const [ search , setSearch ] = useState ( searchParams . get ( 'q' ) || '' ) ;
3637 const { data : aclList } = useAcls ( { clusterName, search } ) ;
3738 const { deleteResource } = useDeleteAcl ( clusterName ) ;
39+ const { isReadOnly } = React . useContext ( ClusterContext ) ;
3840 const modal = useConfirm ( true ) ;
3941 const theme = useTheme ( ) ;
4042 const {
@@ -198,6 +200,7 @@ const ACList: React.FC = () => {
198200 buttonType = "primary"
199201 buttonSize = "M"
200202 onClick = { openFrom }
203+ disabled = { isReadOnly }
201204 permission = { {
202205 resource : ResourceType . ACL ,
203206 action : Action . EDIT ,
You can’t perform that action at this time.
0 commit comments