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:
parent
6f3cbf272b
commit
10143c9198
1 changed files with 7 additions and 5 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue