File tree 1 file changed +13
-3
lines changed
frontend/src/components/ACLPage/List
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,19 @@ import useAppParams from 'lib/hooks/useAppParams';
7
7
import { useAcls , useDeleteAcl } from 'lib/hooks/api/acl' ;
8
8
import { ClusterName } from 'lib/interfaces/cluster' ;
9
9
import {
10
+ Action ,
10
11
KafkaAcl ,
11
12
KafkaAclNamePatternType ,
12
13
KafkaAclPermissionEnum ,
14
+ ResourceType ,
13
15
} from 'generated-sources' ;
14
16
import useBoolean from 'lib/hooks/useBoolean' ;
15
- import { Button } from 'components/common/Button/Button' ;
16
17
import ACLForm from 'components/ACLPage/Form/Form' ;
17
18
import DeleteIcon from 'components/common/Icons/DeleteIcon' ;
18
19
import { useTheme } from 'styled-components' ;
19
20
import ACLFormContext from 'components/ACLPage/Form/AclFormContext' ;
20
21
import PlusIcon from 'components/common/Icons/PlusIcon' ;
22
+ import ActionButton from 'components/common/ActionComponent/ActionButton/ActionButton' ;
21
23
22
24
import * as S from './List.styled' ;
23
25
@@ -148,9 +150,17 @@ const ACList: React.FC = () => {
148
150
return (
149
151
< S . Container >
150
152
< PageHeading text = "Access Control List" >
151
- < Button buttonType = "primary" buttonSize = "M" onClick = { openFrom } >
153
+ < ActionButton
154
+ buttonType = "primary"
155
+ buttonSize = "M"
156
+ onClick = { openFrom }
157
+ permission = { {
158
+ resource : ResourceType . ACL ,
159
+ action : Action . EDIT ,
160
+ } }
161
+ >
152
162
< PlusIcon /> Create ACL
153
- </ Button >
163
+ </ ActionButton >
154
164
</ PageHeading >
155
165
< Table
156
166
columns = { columns }
You can’t perform that action at this time.
0 commit comments