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

Remove logging output and do not load simulator and scenarios upon login since they are loaded in their containers anyway

This commit is contained in:
Sonja Happ 2019-11-28 16:17:25 +01:00
parent 0895ad3c85
commit 6a2201a59a
3 changed files with 9 additions and 12 deletions

View file

@ -83,15 +83,15 @@ class App extends React.Component {
componentDidMount() {
// load all simulators and scenarios to fetch data
AppDispatcher.dispatch({
type: 'simulators/start-load',
token: this.state.token
});
AppDispatcher.dispatch({
type: 'scenarios/start-load',
token: this.state.token
});
// AppDispatcher.dispatch({
// type: 'simulators/start-load',
// token: this.state.token
// });
//
// AppDispatcher.dispatch({
// type: 'scenarios/start-load',
// token: this.state.token
// });
NotificationsDataManager.setSystem(this.refs.notificationSystem);
}

View file

@ -45,7 +45,6 @@ class Scenarios extends Component {
static calculateState() {
const scenarios = ScenarioStore.getState();
const sessionToken = LoginStore.getState().token;
console.log(scenarios);
return {
scenarios,

View file

@ -44,7 +44,6 @@ class UsersDataManager extends RestDataManager {
}
getCurrentUser(token, id) {
console.log("getCurrentUser: ", id);
RestAPI.get(this.makeURL('/users/' + id), token).then(response => {
AppDispatcher.dispatch({
type: 'users/current-user',
@ -59,7 +58,6 @@ class UsersDataManager extends RestDataManager {
}
updateCurrentUser(token, userUpdate){
console.log("UpdateCurrentUser", userUpdate.user.id);
RestAPI.put(this.makeURL('/users/' + userUpdate.user.id), userUpdate, token).then( response => {
AppDispatcher.dispatch({
type: 'users/current-user',