Commit 6a2201a5 authored by Sonja Happ's avatar Sonja Happ

Remove logging output and do not load simulator and scenarios upon login since...

Remove logging output and do not load simulator and scenarios upon login since they are loaded in their containers anyway
parent 0895ad3c
...@@ -83,15 +83,15 @@ class App extends React.Component { ...@@ -83,15 +83,15 @@ class App extends React.Component {
componentDidMount() { componentDidMount() {
// load all simulators and scenarios to fetch data // load all simulators and scenarios to fetch data
AppDispatcher.dispatch({ // AppDispatcher.dispatch({
type: 'simulators/start-load', // type: 'simulators/start-load',
token: this.state.token // token: this.state.token
}); // });
//
AppDispatcher.dispatch({ // AppDispatcher.dispatch({
type: 'scenarios/start-load', // type: 'scenarios/start-load',
token: this.state.token // token: this.state.token
}); // });
NotificationsDataManager.setSystem(this.refs.notificationSystem); NotificationsDataManager.setSystem(this.refs.notificationSystem);
} }
......
...@@ -45,7 +45,6 @@ class Scenarios extends Component { ...@@ -45,7 +45,6 @@ class Scenarios extends Component {
static calculateState() { static calculateState() {
const scenarios = ScenarioStore.getState(); const scenarios = ScenarioStore.getState();
const sessionToken = LoginStore.getState().token; const sessionToken = LoginStore.getState().token;
console.log(scenarios);
return { return {
scenarios, scenarios,
......
...@@ -44,7 +44,6 @@ class UsersDataManager extends RestDataManager { ...@@ -44,7 +44,6 @@ class UsersDataManager extends RestDataManager {
} }
getCurrentUser(token, id) { getCurrentUser(token, id) {
console.log("getCurrentUser: ", id);
RestAPI.get(this.makeURL('/users/' + id), token).then(response => { RestAPI.get(this.makeURL('/users/' + id), token).then(response => {
AppDispatcher.dispatch({ AppDispatcher.dispatch({
type: 'users/current-user', type: 'users/current-user',
...@@ -59,7 +58,6 @@ class UsersDataManager extends RestDataManager { ...@@ -59,7 +58,6 @@ class UsersDataManager extends RestDataManager {
} }
updateCurrentUser(token, userUpdate){ updateCurrentUser(token, userUpdate){
console.log("UpdateCurrentUser", userUpdate.user.id);
RestAPI.put(this.makeURL('/users/' + userUpdate.user.id), userUpdate, token).then( response => { RestAPI.put(this.makeURL('/users/' + userUpdate.user.id), userUpdate, token).then( response => {
AppDispatcher.dispatch({ AppDispatcher.dispatch({
type: 'users/current-user', type: 'users/current-user',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment