@@ -183,36 +183,53 @@ qx.Class.define("osparc.po.UsersPending", {
183183 row,
184184 column : 2 ,
185185 } ) ;
186- pendingUsersLayout . add ( new qx . ui . basic . Label ( pendingUser . accountRequestStatus . toLowerCase ( ) ) , {
186+ const statusImage = new qx . ui . basic . Image ( ) ;
187+ pendingUsersLayout . add ( statusImage , {
187188 row,
188189 column : 3 ,
189190 } ) ;
191+ pendingUsersLayout . add ( new qx . ui . basic . Label ( pendingUser . accountRequestStatus . toLowerCase ( ) ) , {
192+ row,
193+ column : 4 ,
194+ } ) ;
190195 const infoButton = this . self ( ) . createInfoButton ( pendingUser ) ;
191196 pendingUsersLayout . add ( infoButton , {
192197 row,
193- column : 4 ,
198+ column : 5 ,
194199 } ) ;
195200 const buttonsLayout = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) ) ;
196201 pendingUsersLayout . add ( buttonsLayout , {
197202 row,
198- column : 5 ,
203+ column : 6 ,
199204 } ) ;
200205
201206 switch ( pendingUser . accountRequestStatus ) {
202207 case "PENDING" : {
208+ statusImage . set ( {
209+ source : "@FontAwesome5Solid/hourglass-end/16" ,
210+ textColor : "warning-yellow" ,
211+ } ) ;
203212 const approveButton = this . __createApproveButton ( pendingUser . email ) ;
204213 buttonsLayout . add ( approveButton ) ;
205214 const rejectButton = this . __createRejectButton ( pendingUser . email ) ;
206215 buttonsLayout . add ( rejectButton ) ;
207216 break ;
208217 }
209218 case "REJECTED" : {
219+ statusImage . set ( {
220+ source : "@FontAwesome5Solid/times/16" ,
221+ textColor : "danger-red" ,
222+ } ) ;
210223 const approveButton = this . __createApproveButton ( pendingUser . email ) ;
211224 approveButton . setEnabled ( false ) ; // avoid changing decision for now
212225 buttonsLayout . add ( approveButton ) ;
213226 break ;
214227 }
215228 case "APPROVED" : {
229+ statusImage . set ( {
230+ source : "@FontAwesome5Solid/check/16" ,
231+ textColor : "product-color" ,
232+ } ) ;
216233 const resendEmailButton = this . self ( ) . createResendEmailButton ( pendingUser . email ) ;
217234 resendEmailButton . setEnabled ( false ) ;
218235 buttonsLayout . add ( resendEmailButton ) ;
0 commit comments