Skip to content
Snippets Groups Projects
Commit eb4b5e1e authored by James D'Alton's avatar James D'Alton
Browse files

Edit 'Are you sure?' confirmation pop up

parent 1c6a3ef1
No related branches found
No related tags found
No related merge requests found
......@@ -19,15 +19,15 @@ function ConfirmDelete(props) {
<DialogTitle id="alert-dialog-title">{"Confirm deletion"}</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-description">
Are you sure you want to delete this template? - {props.doc.title}
Are you sure you want to delete "{props.doc.title}"?
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={props.toggleConfirmModal} color="primary">
Disagree
Cancel
</Button>
<Button onClick={()=>{ props.confirmDelete(props.type, props.doc) }} color="primary" autoFocus>
Agree
<Button onClick={()=>{ props.confirmDelete(props.type, props.doc) }} color="secondary" autoFocus>
Confirm
</Button>
</DialogActions>
</Dialog>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment