@@ -37,7 +37,6 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
3737 "createFolder" : "qx.event.type.Data" ,
3838 "newStudyFromTemplateClicked" : "qx.event.type.Data" ,
3939 "newStudyFromServiceClicked" : "qx.event.type.Data" ,
40- "changeTab" : "qx.event.type.Data" ,
4140 } ,
4241
4342 statics : {
@@ -91,25 +90,6 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
9190 control . addListener ( "tap" , ( ) => this . __createNewFolder ( ) ) ;
9291 this . add ( control ) ;
9392 break ;
94- case "templates-entry" :
95- control = this . self ( ) . createMenuButton (
96- "@FontAwesome5Solid/copy/18" ,
97- osparc . product . Utils . getTemplateAlias ( {
98- firstUpperCase : true ,
99- plural : true
100- } ) ,
101- ) ;
102- control . addListener ( "tap" , ( ) => this . fireDataEvent ( "changeTab" , "templatesTab" ) ) ;
103- this . add ( control ) ;
104- break ;
105- case "services-entry" :
106- control = this . self ( ) . createMenuButton (
107- "@FontAwesome5Solid/cogs/18" ,
108- this . tr ( "Services" ) ,
109- ) ;
110- control . addListener ( "tap" , ( ) => this . fireDataEvent ( "changeTab" , "servicesTab" ) ) ;
111- this . add ( control ) ;
112- break ;
11393 }
11494 return control || this . base ( arguments , id ) ;
11595 } ,
@@ -118,18 +98,6 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
11898 this . getChildControl ( "new-folder" ) ;
11999 this . addSeparator ( ) ;
120100 await this . __addNewStudyItems ( ) ;
121- const permissions = osparc . data . Permissions . getInstance ( ) ;
122- if ( permissions . canDo ( "dashboard.templates.read" ) || permissions . canDo ( "dashboard.services.read" ) ) {
123- this . addSeparator ( ) ;
124- if ( permissions . canDo ( "dashboard.templates.read" ) ) {
125- const templatesButton = this . getChildControl ( "templates-entry" ) ;
126- this . add ( templatesButton ) ;
127- }
128- if ( permissions . canDo ( "dashboard.services.read" ) ) {
129- const servicesButton = this . getChildControl ( "services-entry" ) ;
130- this . add ( servicesButton ) ;
131- }
132- }
133101 } ,
134102
135103 __addNewStudyItems : async function ( ) {
0 commit comments