Skip to content
Snippets Groups Projects
Commit 3cce559f authored by lfr20's avatar lfr20
Browse files

Add button to delete permission

parent ddf2511f
No related branches found
No related tags found
1 merge request!46Gamefication admin
......@@ -240,7 +240,15 @@ const UserPermissions = () => {
color: ''
})}
/>
<AlertDialog
open={openAlertDialog}
OnDelete={DeleteHandler}
deleteItem={deleteItem}
HandleClose={() => {
setOpenAlertDialog(false);
HandleStateCircularProgress(null);
}}
/>
<Paper style={{ padding: '1em' }}>
<Grid container spacing={3} direction="row" alignItems="center">
<Grid item xs={12}>
......@@ -271,7 +279,6 @@ const UserPermissions = () => {
</Button>
</Grid>
<Grid item>
<Link style={{ textDecoration: 'none' }} to={'/admin/CreateRole'}>
<Button
variant="contained"
......@@ -335,6 +342,20 @@ const UserPermissions = () => {
subtitle: row.description
},
{
title: "Ações",
subtitle: <Button
variant="contained"
color="secondary"
onClick={() => {
HandleStateAlertDialog(index)
HandleStateCircularProgress(index)
}}
startIcon={<DeleteRoundedIcon />}
>
Deletar
</Button>
},
]
}
/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment