File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
services/static-webserver/client/source/class/osparc/study Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ qx.Class.define("osparc.study.StudyOptions", {
4747
4848 patchStudy : {
4949 check : "Boolean" ,
50- init : false ,
50+ init : true ,
5151 nullable : false ,
5252 event : "changePatchStudy" ,
5353 } ,
@@ -182,6 +182,7 @@ qx.Class.define("osparc.study.StudyOptions", {
182182 this . getChildControl ( "options-layout" ) . add ( control ) ;
183183 break ;
184184 case "study-pricing-units" : {
185+ control = new osparc . study . StudyPricingUnits ( ) ;
185186 const loadingImage = this . getChildControl ( "loading-units-spinner" ) ;
186187 const unitsBoxesLayout = this . getChildControl ( "services-resources-layout" ) ;
187188 const unitsLoading = ( ) => {
@@ -191,9 +192,11 @@ qx.Class.define("osparc.study.StudyOptions", {
191192 const unitsReady = ( ) => {
192193 loadingImage . exclude ( ) ;
193194 unitsBoxesLayout . show ( ) ;
195+ control . getNodePricingUnits ( ) . forEach ( nodePricingUnits => {
196+ this . bind ( "patchStudy" , nodePricingUnits , "patchNode" ) ;
197+ } ) ;
194198 } ;
195199 unitsLoading ( ) ;
196- control = new osparc . study . StudyPricingUnits ( ) ;
197200 control . addListener ( "loadingUnits" , ( ) => unitsLoading ( ) ) ;
198201 control . addListener ( "unitsReady" , ( ) => unitsReady ( ) ) ;
199202 unitsBoxesLayout . add ( control ) ;
You can’t perform that action at this time.
0 commit comments