Skip to content

Commit ae69cbb

Browse files
committed
[skip ci] more menu entries
1 parent 18674d3 commit ae69cbb

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

services/static-webserver/client/source/class/osparc/data/model/IframeHandler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ qx.Class.define("osparc.data.model.IframeHandler", {
9292
__initIFrame: function() {
9393
const iframe = new osparc.widget.PersistentIframe();
9494
osparc.utils.Utils.setIdToWidget(iframe.getIframe(), "iframe_"+this.getNode().getNodeId());
95-
if (osparc.product.Utils.isProduct("s4llite")) {
95+
if (
96+
osparc.product.Utils.isProduct("s4llite") ||
97+
this.getStudy().getUi().getMode() === "standalone"
98+
) {
9699
iframe.setShowToolbar(false);
97100
}
98101
iframe.addListener("restart", () => this.__restartIFrame(), this);

services/static-webserver/client/source/class/osparc/navigation/StudyTitleWOptions.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
6868
});
6969
});
7070
break;
71+
case "study-menu-reload":
72+
control = new qx.ui.menu.Button().set({
73+
label: this.tr("Reload"),
74+
icon: "@MaterialIcons/info_outline/14",
75+
});
76+
control.addListener("execute", () => {
77+
console.log("Reload page");
78+
});
79+
break;
80+
case "study-menu-convert-to-pipeline":
81+
control = new qx.ui.menu.Button().set({
82+
label: this.tr("Convert to Pipeline"),
83+
icon: "@MaterialIcons/info_outline/14",
84+
});
85+
control.addListener("execute", () => {
86+
console.log("Convert to Pipeline");
87+
});
88+
break;
7189
case "study-menu-download-logs":
7290
control = new qx.ui.menu.Button().set({
7391
label: this.tr("Download logs"),
@@ -79,6 +97,10 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
7997
const optionsMenu = new qx.ui.menu.Menu();
8098
optionsMenu.setAppearance("menu-wider");
8199
optionsMenu.add(this.getChildControl("study-menu-info"));
100+
if (this.getStudy().getUi().getMode() === "standalone") {
101+
optionsMenu.add(this.getChildControl("study-menu-reload"));
102+
optionsMenu.add(this.getChildControl("study-menu-convert-to-pipeline"));
103+
}
82104
optionsMenu.add(this.getChildControl("study-menu-download-logs"));
83105
control = new qx.ui.form.MenuButton().set({
84106
appearance: "fab-button",

0 commit comments

Comments
 (0)