@@ -27,7 +27,7 @@ qx.Class.define("osparc.study.StudyPricingUnits", {
2727
2828 this . __studyData = studyData ;
2929
30- this . showPricingUnits ( ) ;
30+ this . __showPricingUnits ( ) ;
3131 } ,
3232
3333 events : {
@@ -38,7 +38,7 @@ qx.Class.define("osparc.study.StudyPricingUnits", {
3838 members : {
3939 __studyData : null ,
4040
41- showPricingUnits : function ( ) {
41+ __showPricingUnits : function ( ) {
4242 const unitsLoading = ( ) => this . fireEvent ( "loadingUnits" ) ;
4343 const unitsAdded = ( ) => this . fireEvent ( "unitsReady" ) ;
4444 unitsLoading ( ) ;
@@ -48,40 +48,16 @@ qx.Class.define("osparc.study.StudyPricingUnits", {
4848 const workbench = this . __studyData [ "workbench" ] ;
4949 Object . keys ( workbench ) . forEach ( nodeId => {
5050 const node = workbench [ nodeId ] ;
51+ if ( osparc . data . model . Node . isFrontend ( node ) ) {
52+ return ;
53+ }
5154 const nodePricingUnits = new osparc . study . NodePricingUnits ( this . __studyData [ "uuid" ] , nodeId , node ) ;
5255 this . _add ( nodePricingUnits ) ;
5356 promises . push ( nodePricingUnits . showPricingUnits ( ) ) ;
5457 } ) ;
5558 }
5659 Promise . all ( promises )
5760 . then ( ( ) => unitsAdded ( ) ) ;
58- } ,
59-
60- __createPricingUnitsGroup : function ( nodeLabel , pricingPlans , preselectedPricingUnit ) {
61- if ( pricingPlans && "pricingUnits" in pricingPlans && pricingPlans [ "pricingUnits" ] . length ) {
62- const pricingUnitsLayout = osparc . study . StudyOptions . createGroupBox ( nodeLabel ) ;
63-
64- const unitButtons = new osparc . study . PricingUnits ( pricingPlans [ "pricingUnits" ] , preselectedPricingUnit ) ;
65- pricingUnitsLayout . add ( unitButtons ) ;
66-
67- return {
68- layout : pricingUnitsLayout ,
69- unitButtons
70- } ;
71- }
72- return null ;
73- } ,
74-
75- __pricingUnitSelected : function ( nodeId , pricingPlanId , selectedPricingUnitId ) {
76- const params = {
77- url : {
78- studyId : this . __studyData [ "uuid" ] ,
79- nodeId,
80- pricingPlanId,
81- pricingUnitId : selectedPricingUnitId
82- }
83- } ;
84- return osparc . data . Resources . fetch ( "studies" , "putPricingUnit" , params ) ;
8561 }
8662 }
8763} ) ;
0 commit comments