@@ -95,12 +95,6 @@ qx.Class.define("osparc.navigation.UserMenu", {
9595 control . addListener ( "execute" , ( ) => osparc . cluster . Utils . popUpClustersDetails ( ) , this ) ;
9696 this . add ( control ) ;
9797 break ;
98- case "license" :
99- control = new qx . ui . menu . Button ( this . tr ( "License" ) ) ;
100- osparc . store . Support . getLicenseURL ( )
101- . then ( licenseURL => control . addListener ( "execute" , ( ) => window . open ( licenseURL ) ) ) ;
102- this . add ( control ) ;
103- break ;
10498 case "about" :
10599 control = new qx . ui . menu . Button ( this . tr ( "About oSPARC" ) ) ;
106100 control . addListener ( "execute" , ( ) => osparc . About . getInstance ( ) . open ( ) ) ;
@@ -116,6 +110,18 @@ qx.Class.define("osparc.navigation.UserMenu", {
116110 this . add ( control ) ;
117111 break ;
118112 }
113+ case "license" :
114+ control = new qx . ui . menu . Button ( this . tr ( "License" ) ) ;
115+ osparc . store . Support . getLicenseURL ( )
116+ . then ( licenseURL => control . addListener ( "execute" , ( ) => window . open ( licenseURL ) ) ) ;
117+ this . add ( control ) ;
118+ break ;
119+ case "tip-lite-button" :
120+ control = new qx . ui . menu . Button ( this . tr ( "Access full TIP" ) ) ;
121+ osparc . utils . Utils . setIdToWidget ( control , "userMenuAccessTIPBtn" ) ;
122+ control . addListener ( "execute" , ( ) => osparc . product . TIPTeaser . getInstance ( ) . open ( ) ) ;
123+ this . getChildControl ( "right-items" ) . add ( control ) ;
124+ break ;
119125 case "log-out" : {
120126 const authData = osparc . auth . Data . getInstance ( ) ;
121127 control = new qx . ui . menu . Button ( authData . isGuest ( ) ? this . tr ( "Exit" ) : this . tr ( "Log out" ) ) ;
@@ -167,6 +173,9 @@ qx.Class.define("osparc.navigation.UserMenu", {
167173 this . getChildControl ( "about-product" ) ;
168174 }
169175 this . getChildControl ( "license" ) ;
176+ if ( osparc . product . Utils . isProduct ( "tiplite" ) ) {
177+ this . getChildControl ( "tip-lite-button" ) ;
178+ }
170179 this . addSeparator ( ) ;
171180
172181 this . getChildControl ( "log-out" ) ;
@@ -220,6 +229,9 @@ qx.Class.define("osparc.navigation.UserMenu", {
220229 this . getChildControl ( "about-product" ) ;
221230 }
222231 this . getChildControl ( "license" ) ;
232+ if ( osparc . product . Utils . isProduct ( "tiplite" ) ) {
233+ this . getChildControl ( "tip-lite-button" ) ;
234+ }
223235 this . addSeparator ( ) ;
224236 this . getChildControl ( "log-out" ) ;
225237
0 commit comments