diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js index cf4e656..5000ede 100644 --- a/src/dashboard/dashboard.js +++ b/src/dashboard/dashboard.js @@ -273,7 +273,7 @@ class Dashboard extends Component { } closeEditFiles(){ - + this.setState({ filesEditModal: false }); // TODO do we need this if the dispatches happen in the dialog? } diff --git a/src/file/edit-files.js b/src/file/edit-files.js index 4df19d5..047c2da 100644 --- a/src/file/edit-files.js +++ b/src/file/edit-files.js @@ -38,7 +38,7 @@ class EditFilesDialog extends React.Component { onClose(canceled) { if (canceled === false) { - if (this.validChanges()) { + if (true) { this.props.onClose(); } } else { @@ -64,6 +64,7 @@ class EditFilesDialog extends React.Component { scenarioID: this.props.scenarioID, }); + this.setState({ uploadFile: null }); // TODO make sure that dialog remains open after clicking "Upload" button }; @@ -118,21 +119,23 @@ class EditFilesDialog extends React.Component { }; return ( - + this.onClose(c)} valid={true}>
- - - - - + +
+
+ + + + this.deleteFile(index)} />
- +