@@ -120,6 +120,16 @@ qx.Class.define("osparc.po.UsersPending", {
120120 } ) ;
121121 return button ;
122122 } ,
123+
124+ createInfoButton : function ( infoMetadata ) {
125+ const infoButton = new qx . ui . form . Button ( null , "@MaterialIcons/info_outline/16" ) ;
126+ infoButton . addListener ( "execute" , ( ) => {
127+ const container = new qx . ui . container . Scroll ( ) ;
128+ container . add ( new osparc . ui . basic . JsonTreeWidget ( infoMetadata , "pendingUserInfo" ) ) ;
129+ osparc . ui . window . Window . popUpInWindow ( container , qx . locale . Manager . tr ( "User Info" ) ) ;
130+ } ) ;
131+ return infoButton ;
132+ } ,
123133 } ,
124134
125135 members : {
@@ -172,14 +182,14 @@ qx.Class.define("osparc.po.UsersPending", {
172182 column : 2 ,
173183 } ) ;
174184
175- pendingUsersLayout . add ( new qx . ui . basic . Label ( this . tr ( "Status " ) ) . set ( {
185+ pendingUsersLayout . add ( new qx . ui . basic . Label ( this . tr ( "Info " ) ) . set ( {
176186 font : "text-14"
177187 } ) , {
178188 row : 0 ,
179189 column : 3 ,
180190 } ) ;
181191
182- pendingUsersLayout . add ( new qx . ui . basic . Label ( this . tr ( "Info " ) ) . set ( {
192+ pendingUsersLayout . add ( new qx . ui . basic . Label ( this . tr ( "Status " ) ) . set ( {
183193 font : "text-14"
184194 } ) , {
185195 row : 0 ,
@@ -211,17 +221,12 @@ qx.Class.define("osparc.po.UsersPending", {
211221 row,
212222 column : 2 ,
213223 } ) ;
214- pendingUsersLayout . add ( new qx . ui . basic . Label ( pendingUser . status . toLowerCase ( ) ) , {
224+ const infoButton = this . self ( ) . createInfoButton ( pendingUser . info ) ;
225+ pendingUsersLayout . add ( infoButton , {
215226 row,
216227 column : 3 ,
217228 } ) ;
218- const infoButton = new qx . ui . form . Button ( null , "@MaterialIcons/info_outline/16" ) ;
219- infoButton . addListener ( "execute" , ( ) => {
220- const container = new qx . ui . container . Scroll ( ) ;
221- container . add ( new osparc . ui . basic . JsonTreeWidget ( pendingUser . info , "pendingUserInfo" ) ) ;
222- osparc . ui . window . Window . popUpInWindow ( container , this . tr ( "User Info" ) ) ;
223- } ) ;
224- pendingUsersLayout . add ( infoButton , {
229+ pendingUsersLayout . add ( new qx . ui . basic . Label ( pendingUser . status . toLowerCase ( ) ) , {
225230 row,
226231 column : 4 ,
227232 } ) ;
0 commit comments