projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RIFT-16181: Project switch must affect non-polling/non-socket based pages
[osm/UI.git]
/
skyquake
/
framework
/
widgets
/
skyquake_container
/
skyquakeContainerStore.js
diff --git
a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js
b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js
index
1403d0a
..
4f27094
100644
(file)
--- 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)) {
self.closeSocket();
});
if (!_.isEqual(data.project, self.projects)) {
+ let user = self.user;
+ user.projects = data.project;
self.setState({
self.setState({
+ user: user,
projects: data.project
});
}
projects: data.project
});
}
@@
-196,7
+199,8
@@
class SkyquakeContainerStore {
let user = this.user;
user.projectId = projectId;
this.setState({user});
let user = this.user;
user.projectId = projectId;
this.setState({user});
- }
+ window.location.reload(true);
+ }
//Notifications
showNotification = (data) => {
let state = {
//Notifications
showNotification = (data) => {
let state = {
@@
-209,7
+213,7
@@
class SkyquakeContainerStore {
} else {
if(!data) data = {};
} 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;
}
if(data.type) {
state.notificationType = data.type;
}