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
Branches onBoarding
No related tags found
No related merge requests found
...@@ -19,15 +19,15 @@ function ConfirmDelete(props) { ...@@ -19,15 +19,15 @@ function ConfirmDelete(props) {
<DialogTitle id="alert-dialog-title">{"Confirm deletion"}</DialogTitle> <DialogTitle id="alert-dialog-title">{"Confirm deletion"}</DialogTitle>
<DialogContent> <DialogContent>
<DialogContentText id="alert-dialog-description"> <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> </DialogContentText>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button onClick={props.toggleConfirmModal} color="primary"> <Button onClick={props.toggleConfirmModal} color="primary">
Disagree Cancel
</Button> </Button>
<Button onClick={()=>{ props.confirmDelete(props.type, props.doc) }} color="primary" autoFocus> <Button onClick={()=>{ props.confirmDelete(props.type, props.doc) }} color="secondary" autoFocus>
Agree Confirm
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment