mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Fix for edit files: dialog now stays open after adding/deleting file, cancel button deleted #219
This commit is contained in:
parent
d8fdf33dbc
commit
766ccc23d3
3 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ class Dialog extends React.Component {
|
|||
</Modal.Body>
|
||||
|
||||
<Modal.Footer>
|
||||
<Button onClick={this.cancelModal}>Cancel</Button>
|
||||
{this.props.blendOutCancel? <div></div>: <Button onClick={this.cancelModal}>Cancel</Button>}
|
||||
<Button onClick={this.closeModal} disabled={!this.props.valid}>{this.props.buttonTitle}</Button>
|
||||
</Modal.Footer>
|
||||
</Modal>
|
||||
|
|
|
@ -122,7 +122,7 @@ class Dashboard extends Component {
|
|||
paused: prevState.paused || false,
|
||||
|
||||
editModal: false,
|
||||
filesEditModal: false,
|
||||
filesEditModal: prevState.filesEditModal || false,
|
||||
filesEditSaveState: prevState.filesEditSaveState || [],
|
||||
modalData: null,
|
||||
modalIndex: null,
|
||||
|
|
|
@ -119,7 +119,7 @@ class EditFilesDialog extends React.Component {
|
|||
};
|
||||
|
||||
return (
|
||||
<Dialog show={this.props.show} title="Edit Files of scenario" buttonTitle="Close" onClose={(c) => this.onClose(c)} valid={true}>
|
||||
<Dialog show={this.props.show} title="Edit Files of scenario" buttonTitle="Close" onClose={(c) => this.onClose(c)} blendOutCancel = {true} valid={true}>
|
||||
<div>
|
||||
|
||||
<div className="edit-table">
|
||||
|
|
Loading…
Add table
Reference in a new issue