@@ -27,7 +27,7 @@ qx.Class.define("osparc.po.UsersPending", {
2727 name : "John Doe" ,
28282929 date : "2025-01-01 00:00:00.702394" ,
30- status : "APPROVAL_PENDING " ,
30+ status : "PENDING " ,
3131 info : {
3232 "institution" : "ETH Zurich" ,
3333 "department" : "Department of Physics" ,
@@ -39,7 +39,7 @@ qx.Class.define("osparc.po.UsersPending", {
3939 name : "Jane Doe" ,
40404141 date : "2025-01-01 00:01:00.702394" ,
42- status : "APPROVAL_DENIED " ,
42+ status : "REJECTED " ,
4343 info : {
4444 "institution" : "ETH Zurich" ,
4545 "department" : "Department of Physics" ,
@@ -51,7 +51,7 @@ qx.Class.define("osparc.po.UsersPending", {
5151 name : "Alice Smith" ,
52525353 date : "2025-01-01 00:02:00.702394" ,
54- status : "CONFIRMATION_PENDING " ,
54+ status : "APPROVED " ,
5555 info : {
5656 "institution" : "ETH Zurich" ,
5757 "department" : "Department of Physics" ,
@@ -83,16 +83,16 @@ qx.Class.define("osparc.po.UsersPending", {
8383 return button ;
8484 } ,
8585
86- createDenyButton : function ( email ) {
87- const button = new osparc . ui . form . FetchButton ( qx . locale . Manager . tr ( "Deny " ) ) ;
86+ createRejectButton : function ( email ) {
87+ const button = new osparc . ui . form . FetchButton ( qx . locale . Manager . tr ( "Reject " ) ) ;
8888 button . addListener ( "execute" , ( ) => {
8989 button . setFetching ( true ) ;
9090 const params = {
9191 url : {
9292 userEmail : email ,
9393 } ,
9494 } ;
95- osparc . data . Resources . fetch ( "poUsers" , "denyUser " , params )
95+ osparc . data . Resources . fetch ( "poUsers" , "rejectUser " , params )
9696 . then ( ( ) => {
9797 osparc . FlashMessenger . logAs ( qx . locale . Manager . tr ( "User denied" ) , "INFO" ) ;
9898 } )
@@ -237,19 +237,19 @@ qx.Class.define("osparc.po.UsersPending", {
237237 } ) ;
238238
239239 switch ( pendingUser . status ) {
240- case "APPROVAL_PENDING " : {
240+ case "PENDING " : {
241241 const approveButton = this . self ( ) . createApproveButton ( pendingUser . email ) ;
242242 buttonsLayout . add ( approveButton ) ;
243- const denyButton = this . self ( ) . createDenyButton ( pendingUser . email ) ;
244- buttonsLayout . add ( denyButton ) ;
243+ const rejectButton = this . self ( ) . createRejectButton ( pendingUser . email ) ;
244+ buttonsLayout . add ( rejectButton ) ;
245245 break ;
246246 }
247- case "APPROVAL_DENIED " : {
247+ case "REJECTED " : {
248248 const approveButton = this . self ( ) . createApproveButton ( pendingUser . email ) ;
249249 buttonsLayout . add ( approveButton ) ;
250250 break ;
251251 }
252- case "CONFIRMATION_PENDING " : {
252+ case "APPROVED " : {
253253 const resendEmailButton = this . self ( ) . createResendEmailButton ( pendingUser . email ) ;
254254 buttonsLayout . add ( resendEmailButton ) ;
255255 break ;
0 commit comments