File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ qx.Class.define("osparc.data.model.User", {
4545 }
4646 const thumbnail = osparc . utils . Avatar . emailToThumbnail ( userData [ "login" ] ) ;
4747 this . set ( {
48- userId : userData [ "id" ] ,
49- groupId : userData [ "gid" ] ,
48+ userId : parseInt ( userData [ "id" ] ) ,
49+ groupId : parseInt ( userData [ "gid" ] ) ,
5050 username : userData [ "username" ] ,
5151 firstName : userData [ "first_name" ] ,
5252 lastName : userData [ "last_name" ] ,
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ qx.Class.define("osparc.store.Groups", {
231231 } ,
232232
233233 getOrganization : function ( groupId ) {
234+ groupId = parseInt ( groupId ) ;
234235 if ( groupId && groupId in this . getOrganizations ( ) ) {
235236 return this . getOrganizations ( ) [ groupId ] ;
236237 }
Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ qx.Class.define("osparc.store.Store", {
5555 check : "Object" ,
5656 init : { }
5757 } ,
58+ announcements : {
59+ check : "Array" ,
60+ init : [ ]
61+ } ,
62+ maintenance : {
63+ check : "Object" ,
64+ init : { }
65+ } ,
5866 currentStudy : {
5967 check : "osparc.data.model.Study" ,
6068 init : null ,
@@ -111,10 +119,6 @@ qx.Class.define("osparc.store.Store", {
111119 init : [ ] ,
112120 event : "changeIterations"
113121 } ,
114- maintenance : {
115- check : "Object" ,
116- init : { }
117- } ,
118122 templates : {
119123 check : "Array" ,
120124 init : [ ]
You can’t perform that action at this time.
0 commit comments