Skip to content

Commit 9145cf4

Browse files
committed
bind props
1 parent 0946308 commit 9145cf4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

services/static-webserver/client/source/class/osparc/study/StudyOptions.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)