1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

wip: cancel edit now resets widget

This commit is contained in:
Laura Fuentes Grau 2020-03-22 14:22:26 +01:00
parent 6f3cbf272b
commit 10143c9198

View file

@ -245,6 +245,13 @@ class Dashboard extends Component {
closeEdit(data){
if (data == null) {
AppDispatcher.dispatch({
type: 'widgets/start-load',
token: this.state.sessionToken,
param: '?dashboardID=1'
});
this.setState({ editModal: false });
return;
@ -321,11 +328,6 @@ class Dashboard extends Component {
token: this.state.sessionToken
});
}); */
AppDispatcher.dispatch({
type: 'dashboards/start-load',
data: this.props.match.params.dashboard,
token: this.state.sessionToken
});
AppDispatcher.dispatch({
type: 'widgets/start-load',