X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fframework%2Fwidgets%2Fskyquake_container%2FskyquakeContainerStore.js;h=cb731c73c6d808e61d31718809a2de4e22bfabbd;hb=56e55f5efc98e32a1afb3d99d07e9e5b0847a258;hp=1403d0a2fb175283821d5d663bb4453604fbf19c;hpb=2279bd2b93eb7cf73526ee3cc1ae299f4bcfe48e;p=osm%2FUI.git diff --git a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js index 1403d0a2f..cb731c73c 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 }); } @@ -209,7 +212,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; }