@@ -40,6 +40,8 @@ qx.Class.define("osparc.user.UserDetails", {
4040 USERNAME : 0 ,
4141 FULLNAME : 1 ,
4242 EMAIL : 2 ,
43+ USER_ID : 3 ,
44+ GROUP_ID : 4 ,
4345 }
4446 } ,
4547
@@ -58,7 +60,7 @@ qx.Class.define("osparc.user.UserDetails", {
5860 let control ;
5961 switch ( id ) {
6062 case "top-layout" :
61- control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 10 ) ) ;
63+ control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 20 ) ) ;
6264 this . add ( control ) ;
6365 break ;
6466 case "thumbnail" :
@@ -70,7 +72,7 @@ qx.Class.define("osparc.user.UserDetails", {
7072 this . getChildControl ( "top-layout" ) . add ( control ) ;
7173 break ;
7274 case "main-info" : {
73- const grid = new qx . ui . layout . Grid ( 5 , 10 ) ;
75+ const grid = new qx . ui . layout . Grid ( 10 , 6 ) ;
7476 grid . setColumnFlex ( 1 , 1 ) ;
7577 grid . setColumnAlign ( 0 , "right" , "middle" ) ;
7678 control = new qx . ui . container . Composite ( grid ) ;
@@ -118,6 +120,32 @@ qx.Class.define("osparc.user.UserDetails", {
118120 } ) ;
119121 break ;
120122 }
123+ case "user-id" : {
124+ const title = new qx . ui . basic . Label ( "User ID" ) ;
125+ this . getChildControl ( "main-info" ) . add ( title , {
126+ row : this . self ( ) . GRID_POS . USER_ID ,
127+ column : 0
128+ } ) ;
129+ control = new qx . ui . basic . Label ( ) ;
130+ this . getChildControl ( "main-info" ) . add ( control , {
131+ row : this . self ( ) . GRID_POS . USER_ID ,
132+ column : 1
133+ } ) ;
134+ break ;
135+ }
136+ case "group-id" : {
137+ const title = new qx . ui . basic . Label ( "Group ID" ) ;
138+ this . getChildControl ( "main-info" ) . add ( title , {
139+ row : this . self ( ) . GRID_POS . GROUP_ID ,
140+ column : 0
141+ } ) ;
142+ control = new qx . ui . basic . Label ( ) ;
143+ this . getChildControl ( "main-info" ) . add ( control , {
144+ row : this . self ( ) . GRID_POS . GROUP_ID ,
145+ column : 1
146+ } ) ;
147+ break ;
148+ }
121149 }
122150 return control || this . base ( arguments , id ) ;
123151 } ,
@@ -129,6 +157,8 @@ qx.Class.define("osparc.user.UserDetails", {
129157 this . getChildControl ( "username" ) . setValue ( user . getUsername ( ) ) ;
130158 this . getChildControl ( "fullname" ) . setValue ( user . getFirstName ( ) + " " + user . getLastName ( ) ) ;
131159 this . getChildControl ( "email" ) . setValue ( user . getEmail ( ) ) ;
160+ this . getChildControl ( "user-id" ) . setValue ( String ( user . getUserId ( ) ) ) ;
161+ this . getChildControl ( "group-id" ) . setValue ( String ( user . getGroupId ( ) ) ) ;
132162 } ,
133163 }
134164} ) ;
0 commit comments