Skip to content

Commit

Permalink
#2 Adding modal to confirm delete of file! This is working fine!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatan Salas committed Aug 11, 2016
1 parent 64418ce commit a43e68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/FileInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class FileUploadItem extends Component {
<Button onClick={() => this.showModal(false)}>
Close
</Button>
<Button bsStyle="primary" onClick={onClick}>
<Button bsStyle="primary" onClick={() => { onClick(); this.showModal(false)}}>
Delete
</Button>
</Modal.Footer>
Expand Down

0 comments on commit a43e68e

Please sign in to comment.