File tree Expand file tree Collapse file tree 2 files changed +60
-3
lines changed
services/static-webserver/client/source/class/osparc/po Expand file tree Collapse file tree 2 files changed +60
-3
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,29 @@ qx.Class.define("osparc.po.POCenter", {
2626 } ) ;
2727 this . addWidgetToTabs ( miniProfile ) ;
2828
29- this . __addUsersPage ( ) ;
29+ this . __addActiveUsersPage ( ) ;
30+ this . __addPendingUsersPage ( ) ;
3031 this . __addPreRegistrationPage ( ) ;
3132 this . __addInvitationsPage ( ) ;
3233 this . __addProductPage ( ) ;
3334 this . __addMsgTemplatesPage ( ) ;
3435 } ,
3536
3637 members : {
37- __addUsersPage : function ( ) {
38- const title = this . tr ( "Users" ) ;
38+ __addActiveUsersPage : function ( ) {
39+ const title = this . tr ( "Active Users" ) ;
3940 const iconSrc = "@FontAwesome5Solid/user/22" ;
4041 const users = new osparc . po . Users ( ) ;
4142 this . addTab ( title , iconSrc , users ) ;
4243 } ,
4344
45+ __addPendingUsersPage : function ( ) {
46+ const title = this . tr ( "Pending Users" ) ;
47+ const iconSrc = "@FontAwesome5Solid/user-plus/22" ;
48+ const usersPending = new osparc . po . UsersPending ( ) ;
49+ this . addTab ( title , iconSrc , usersPending ) ;
50+ } ,
51+
4452 __addPreRegistrationPage : function ( ) {
4553 const title = this . tr ( "Pre-Registration" ) ;
4654 const iconSrc = "@FontAwesome5Solid/address-card/22" ;
Original file line number Diff line number Diff line change 1+ /* ************************************************************************
2+
3+ osparc - the simcore frontend
4+
5+ https://osparc.io
6+
7+ Copyright:
8+ 2024 IT'IS Foundation, https://itis.swiss
9+
10+ License:
11+ MIT: https://opensource.org/licenses/MIT
12+
13+ Authors:
14+ * Pedro Crespo-Valero (pcrespov)
15+ * Odei Maiz (odeimaiz)
16+
17+ ************************************************************************ */
18+
19+ qx . Class . define ( "osparc.po.UsersPending" , {
20+ extend : osparc . po . BaseView ,
21+
22+ members : {
23+ _createChildControlImpl : function ( id ) {
24+ let control ;
25+ switch ( id ) {
26+ case "pending-users-container" :
27+ control = new qx . ui . container . Scroll ( ) ;
28+ this . _add ( control , {
29+ flex : 1
30+ } ) ;
31+ break ;
32+ }
33+ return control || this . base ( arguments , id ) ;
34+ } ,
35+
36+ _buildLayout : function ( ) {
37+ this . getChildControl ( "pending-users-container" ) ;
38+
39+ this . __populatePendingUsersLayout ( ) ;
40+ } ,
41+
42+ __populatePendingUsersLayout : function ( respData ) {
43+ const pendingUsersContainer = this . getChildControl ( "pending-users-container" ) ;
44+ osparc . utils . Utils . removeAllChildren ( pendingUsersContainer ) ;
45+ const usersRespViewer = new osparc . ui . basic . JsonTreeWidget ( respData , "users-data" ) ;
46+ pendingUsersContainer . add ( usersRespViewer ) ;
47+ }
48+ }
49+ } ) ;
You can’t perform that action at this time.
0 commit comments