File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
services/static-webserver/client/source/class/osparc/share Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,17 @@ qx.Class.define("osparc.share.RequestServiceAccess", {
5858
5959 // Populate the grid with the cantReadServicesData
6060 cantReadServicesData . forEach ( ( cantReadServiceData , idx ) => {
61- const group = osparc . store . Groups . getInstance ( ) . getGroup ( cantReadServiceData [ "owner" ] ) ;
62- if ( group ) {
63- const username = new qx . ui . basic . Label ( group . getLabel ( ) ) . set ( {
61+ const userGroupId = cantReadServiceData [ "owner" ] ;
62+ if ( userGroupId ) {
63+ const username = new qx . ui . basic . Label ( ) . set ( {
6464 rich : true ,
6565 selectable : true ,
6666 } ) ;
6767 layout . add ( username , {
6868 row : idx + 1 ,
6969 column : 0
7070 } ) ;
71- const email = new qx . ui . basic . Label ( group . getEmail ( ) ) . set ( {
71+ const email = new qx . ui . basic . Label ( ) . set ( {
7272 rich : true ,
7373 selectable : true ,
7474 } ) ;
@@ -85,6 +85,16 @@ qx.Class.define("osparc.share.RequestServiceAccess", {
8585 row : idx + 1 ,
8686 column : 2
8787 } ) ;
88+
89+ osparc . store . Users . getInstance ( ) . getUser ( userGroupId )
90+ . then ( user => {
91+ username . setValue ( user ? user . getLabel ( ) : this . tr ( "Unknown user" ) ) ;
92+ email . setValue ( user ? user . getEmail ( ) : "Unknown email" ) ;
93+ } )
94+ . catch ( ( ) => {
95+ username . setValue ( this . tr ( "Unknown user" ) ) ;
96+ email . setValue ( "Unknown email" ) ;
97+ } ) ;
8898 }
8999 } ) ;
90100 }
You can’t perform that action at this time.
0 commit comments