Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
const page = new osparc.dashboard.resources.pages.BasePage(title, iconSrc, id);
const createFunction = new osparc.study.CreateFunction(this.__resourceData);
const createFunctionButton = createFunction.getCreateFunctionButton();
osparc.utils.Utils.setIdToWidget(createFunctionButton, "create_function_page_btn");
osparc.dashboard.resources.pages.BasePage.decorateHeaderButton(createFunctionButton);
const toolbar = this.self().createToolbar();
toolbar.add(createFunctionButton);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ qx.Class.define("osparc.form.renderer.PropForm", {
allowGrowX: false,
alignX: "center"
});
osparc.utils.Utils.setIdToWidget(probeBtn, "connect_input_btn_" + field.key);
this.__fieldOptsBtnMap[field.key] = fieldOptsBtn;
// populate the button/menu when the it appears
fieldOptsBtn.addListenerOnce("appear", () => {
Expand Down Expand Up @@ -323,13 +324,12 @@ qx.Class.define("osparc.form.renderer.PropForm", {
const paramsMenuBtn = this.__getParamsMenuButton(field.key);
paramsMenuBtn.exclude();
optionsMenu.add(paramsMenuBtn);
const areParamsEnabled = osparc.utils.Utils.isDevelopmentPlatform();
[
newParamBtn,
paramsMenuBtn
].forEach(btn => {
studyUI.bind("mode", btn, "visibility", {
converter: mode => mode === "workbench" && areParamsEnabled ? "visible" : "excluded"
converter: mode => mode === "workbench" ? "visible" : "excluded"
});
});
}
Expand Down Expand Up @@ -426,6 +426,7 @@ qx.Class.define("osparc.form.renderer.PropForm", {

__getNewParamButton: function(portId) {
const newParamBtn = new qx.ui.menu.Button(this.tr("Set new parameter"));
osparc.utils.Utils.setIdToWidget(newParamBtn, "connect_new_parameter_btn_" + portId);
newParamBtn.addListener("execute", () => this.fireDataEvent("parameterRequested", portId), this);
return newParamBtn;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ qx.Class.define("osparc.study.CreateFunction", {
allowGrowX: false,
alignX: "right"
});
osparc.utils.Utils.setIdToWidget(createFunctionButton, "create_function_btn");
createFunctionBtn.addListener("execute", () => {
if (this.__form.validate()) {
this.__createFunction(defaultInputs, exposedInputs, exposedOutputs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ qx.Class.define("osparc.widget.NodeOutputs", {
focusable: false,
toolTipText: this.tr("Connects a Probe to this output")
});
osparc.utils.Utils.setIdToWidget(probeBtn, "connect_probe_btn_" + portKey);
this.bind("offerProbes", probeBtn, "visibility", {
converter: val => val ? "visible" : "excluded"
});
Expand Down
Loading