@@ -42,6 +42,7 @@ qx.Class.define("osparc.desktop.account.MyAccount", {
4242 } ) ;
4343
4444 const authData = osparc . auth . Data . getInstance ( ) ;
45+
4546 const email = authData . getEmail ( ) ;
4647 const avatarSize = 80 ;
4748 const img = new qx . ui . basic . Image ( ) . set ( {
@@ -56,10 +57,17 @@ qx.Class.define("osparc.desktop.account.MyAccount", {
5657 } ) ;
5758 layout . add ( img ) ;
5859
59- const name = new qx . ui . basic . Label ( ) . set ( {
60+ const usernameLabel = new qx . ui . basic . Label ( ) . set ( {
6061 font : "text-14" ,
6162 alignX : "center"
6263 } ) ;
64+ authData . bind ( "username" , usernameLabel , "value" ) ;
65+ layout . add ( usernameLabel ) ;
66+
67+ const name = new qx . ui . basic . Label ( ) . set ( {
68+ font : "text-13" ,
69+ alignX : "center"
70+ } ) ;
6371 layout . add ( name ) ;
6472 authData . bind ( "firstName" , name , "value" , {
6573 converter : firstName => firstName + " " + authData . getLastName ( )
@@ -68,13 +76,6 @@ qx.Class.define("osparc.desktop.account.MyAccount", {
6876 converter : lastName => authData . getFirstName ( ) + " " + lastName
6977 } ) ;
7078
71- const usernameLabel = new qx . ui . basic . Label ( ) . set ( {
72- font : "text-14" ,
73- alignX : "center"
74- } ) ;
75- authData . bind ( "username" , usernameLabel , "value" ) ;
76- layout . add ( usernameLabel ) ;
77-
7879 if ( authData . getRole ( ) !== "user" ) {
7980 const role = authData . getFriendlyRole ( ) ;
8081 const roleLabel = new qx . ui . basic . Label ( role ) . set ( {
0 commit comments