Skip to content

Commit 9baa246

Browse files
author
Jonatan Salas
committed
#2 Added message for dialog with name of file
1 parent 55637ea commit 9baa246

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/common/FileInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ export default class FileUploadItem extends Component {
7575
<Col xs={4} md={4}>
7676
<Modal show={show}>
7777
<Modal.Header>
78-
<Modal.Title>Delete file</Modal.Title>
78+
<Modal.Title>Delete <b>{file.name}</b></Modal.Title>
7979
</Modal.Header>
8080
<Modal.Body>
81-
Are you sure that you want to delete this file?
81+
<p>Are you sure that you want to delete this file?</p>
8282
</Modal.Body>
8383
<Modal.Footer>
8484
<Button onClick={() => this.showModal(false)}>

src/components/field/FileUpload.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export default class FileUpload extends Component {
5050

5151
this.setState({files: files});
5252
this.setState({disableUpload: this.state.files.length == 0});
53-
5453
};
5554

5655
openDropZone = () => {

0 commit comments

Comments
 (0)