@@ -129,6 +129,7 @@ qx.Class.define("osparc.dashboard.Dashboard", {
129129 buttonId : "hypertoolsTabBtn" ,
130130 label : this . tr ( "HYPERTOOLS" ) ,
131131 icon : "@FontAwesome5Solid/copy/" + tabIconSize ,
132+ initVisibility : "excluded" ,
132133 buildLayout : this . __createHypertoolsBrowser
133134 } ) ;
134135 }
@@ -141,16 +142,17 @@ qx.Class.define("osparc.dashboard.Dashboard", {
141142 buildLayout : this . __createServiceBrowser
142143 } ) ;
143144 }
144- if ( permissions . canDo ( "dashboard.data.read" ) && osparc . product . Utils . isProduct ( "osparc" ) ) {
145+ if ( permissions . canDo ( "dashboard.data.read" ) ) {
145146 tabs . push ( {
146147 id : "dataTab" ,
147148 buttonId : "dataTabBtn" ,
148149 label : this . tr ( "DATA" ) ,
149150 icon : "@FontAwesome5Solid/folder/" + tabIconSize ,
151+ initVisibility : osparc . product . Utils . isProduct ( "osparc" ) ? "visible" : "excluded" ,
150152 buildLayout : this . __createDataBrowser
151153 } ) ;
152154 }
153- tabs . forEach ( ( { id, buttonId, label, icon, buildLayout} ) => {
155+ tabs . forEach ( ( { id, buttonId, label, icon, initVisibility , buildLayout} ) => {
154156 const tabPage = new qx . ui . tabview . Page ( label , icon ) . set ( {
155157 appearance : "dashboard-page"
156158 } ) ;
@@ -159,6 +161,7 @@ qx.Class.define("osparc.dashboard.Dashboard", {
159161 tabButton . set ( {
160162 minWidth : 50 ,
161163 maxHeight : 36 ,
164+ visibility : initVisibility ? initVisibility : "visible" ,
162165 } ) ;
163166 tabButton . ttt = label ;
164167 tabButton . getChildControl ( "label" ) . set ( {
@@ -186,7 +189,7 @@ qx.Class.define("osparc.dashboard.Dashboard", {
186189 } , this ) ;
187190 viewLayout . addListener ( "showTab" , e => {
188191 const showTab = e . getData ( ) ;
189- tabPage . setVisibility ( showTab ? "visible" : "excluded" ) ;
192+ tabButton . setVisibility ( showTab ? "visible" : "excluded" ) ;
190193 } )
191194 const scrollerMainView = new qx . ui . container . Scroll ( ) ;
192195 scrollerMainView . add ( viewLayout ) ;
0 commit comments