Skip to content

Commit

Permalink
feat(admin-ui): design the layout for role-permission mapping #336
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Dec 29, 2021
1 parent 36c8bfc commit b1d56f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/admin/components/Roles/UiRoleListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function UiRoleListPage({ apiRoles, permissions, loading, dispatch }) {
const myActions = []
const options = []
const userAction = {}
const [adding, setAdding] = useState(false)
const pageSize = localStorage.getItem('paggingSize') || 10
useEffect(() => {
doFetchList()
Expand Down Expand Up @@ -59,7 +58,7 @@ function UiRoleListPage({ apiRoles, permissions, loading, dispatch }) {
title: `${t('fields.name')}`,
field: 'role',
width: '40%',
editable: adding,
editable: false,
render: (rowData) => <Badge color="info">{rowData.role}</Badge>,
},
{ title: `${t('fields.description')}`, field: 'description' },
Expand Down

0 comments on commit b1d56f1

Please sign in to comment.