X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fframework%2Fwidgets%2Fskyquake_container%2FskyquakeContainerStore.js;h=4f270945abffa8a7671253f92404337fbd3c8d74;hp=1403d0a2fb175283821d5d663bb4453604fbf19c;hb=54e4cde9338a0c798477422905cdd3b194d33a42;hpb=5fe8f677ae26b665ef8239086e520da56f675939 diff --git a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js index 1403d0a2f..4f270945a 100644 --- a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js +++ b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js @@ -179,7 +179,10 @@ class SkyquakeContainerStore { self.closeSocket(); }); if (!_.isEqual(data.project, self.projects)) { + let user = self.user; + user.projects = data.project; self.setState({ + user: user, projects: data.project }); } @@ -196,7 +199,8 @@ class SkyquakeContainerStore { let user = this.user; user.projectId = projectId; this.setState({user}); - } + window.location.reload(true); + } //Notifications showNotification = (data) => { let state = { @@ -209,7 +213,7 @@ class SkyquakeContainerStore { } else { if(!data) data = {}; - state.notificationMessage = data.msg || 'Something very bad happened wrong'; + state.notificationMessage = data.msg || 'Something wrong occurred. Check the network tab and console logs for more information.'; if(data.type) { state.notificationType = data.type; }