mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Add visualization load after created
This commit is contained in:
parent
f6832a383a
commit
a9c0c04397
1 changed files with 10 additions and 2 deletions
|
@ -101,6 +101,8 @@ class Visualizations extends Component {
|
|||
}
|
||||
|
||||
closeNewModal(data) {
|
||||
this.setState({ newModal: false });
|
||||
|
||||
if (data) {
|
||||
// add project to visualization
|
||||
data.project = this.state.project._id;
|
||||
|
@ -110,9 +112,15 @@ class Visualizations extends Component {
|
|||
data: data,
|
||||
token: this.state.sessionToken
|
||||
});
|
||||
}
|
||||
|
||||
this.setState({ newModal: false });
|
||||
this.setState({ project: {} }, () => {
|
||||
AppDispatcher.dispatch({
|
||||
type: 'projects/start-load',
|
||||
data: this.props.match.params.project,
|
||||
token: this.state.sessionToken
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
closeDeleteModal = confirmDelete => {
|
||||
|
|
Loading…
Add table
Reference in a new issue