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

Add button to delete permission

parent ddf2511f
Branches
No related tags found
1 merge request!46Gamefication admin
...@@ -240,7 +240,15 @@ const UserPermissions = () => { ...@@ -240,7 +240,15 @@ const UserPermissions = () => {
color: '' color: ''
})} })}
/> />
<AlertDialog
open={openAlertDialog}
OnDelete={DeleteHandler}
deleteItem={deleteItem}
HandleClose={() => {
setOpenAlertDialog(false);
HandleStateCircularProgress(null);
}}
/>
<Paper style={{ padding: '1em' }}> <Paper style={{ padding: '1em' }}>
<Grid container spacing={3} direction="row" alignItems="center"> <Grid container spacing={3} direction="row" alignItems="center">
<Grid item xs={12}> <Grid item xs={12}>
...@@ -271,7 +279,6 @@ const UserPermissions = () => { ...@@ -271,7 +279,6 @@ const UserPermissions = () => {
</Button> </Button>
</Grid> </Grid>
<Grid item> <Grid item>
<Link style={{ textDecoration: 'none' }} to={'/admin/CreateRole'}> <Link style={{ textDecoration: 'none' }} to={'/admin/CreateRole'}>
<Button <Button
variant="contained" variant="contained"
...@@ -335,6 +342,20 @@ const UserPermissions = () => { ...@@ -335,6 +342,20 @@ const UserPermissions = () => {
subtitle: row.description 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