File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,17 @@ qx.Class.define("osparc.TooSmallDialog", {
6161 const layout = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( ) . set ( {
6262 alignX : "right"
6363 } ) ) ;
64-
6564 const authData = osparc . auth . Data . getInstance ( ) ;
65+ authData . bind ( "loggedIn" , layout , "visibility" , {
66+ converter : isLoggedIn => isLoggedIn ? "visible" : "excluded"
67+ } ) ;
68+
6669 const button = new qx . ui . form . Button ( authData . isGuest ( ) ? this . tr ( "Exit" ) : this . tr ( "Log out" ) ) . set ( {
6770 allowGrowX : false
6871 } ) ;
6972 button . addListener ( "execute" , ( ) => qx . core . Init . getApplication ( ) . logout ( ) ) ;
7073 layout . add ( button ) ;
7174
72- authData . bind ( "loggedIn" , layout , "visibility" , {
73- converter : isLoggedIn => isLoggedIn ? "visible" : "excluded"
74- } ) ;
75-
7675 return layout ;
7776 } ,
7877 }
You can’t perform that action at this time.
0 commit comments