Skip to content

Commit 4c08f9e

Browse files
committed
Access from study menu
1 parent df55c2a commit 4c08f9e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
7575
});
7676
control.addListener("execute", () => this.__reloadIFrame(), this);
7777
break;
78+
case "study-menu-conversations":
79+
control = new qx.ui.menu.Button().set({
80+
label: this.tr("Conversations"),
81+
icon: "@FontAwesome5Solid/comments/12",
82+
});
83+
control.addListener("execute", () => osparc.info.Conversations.popUpInWindow(this.getStudy().serialize()), this);
84+
break;
7885
case "study-menu-convert-to-pipeline":
7986
control = new qx.ui.menu.Button().set({
8087
label: this.tr("Convert to Pipeline"),
@@ -103,6 +110,9 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
103110
optionsMenu.setAppearance("menu-wider");
104111
optionsMenu.add(this.getChildControl("study-menu-info"));
105112
optionsMenu.add(this.getChildControl("study-menu-reload"));
113+
if (osparc.utils.DisabledPlugins.isConversationEnabled()) {
114+
optionsMenu.add(this.getChildControl("study-menu-conversations"));
115+
}
106116
if (osparc.product.Utils.hasConvertToPipelineEnabled()) {
107117
optionsMenu.add(this.getChildControl("study-menu-convert-to-pipeline"));
108118
}
@@ -151,6 +161,13 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
151161
converter: mode => mode === "standalone" ? "visible" : "excluded"
152162
});
153163

164+
if (osparc.utils.DisabledPlugins.isConversationEnabled()) {
165+
const conversationsButton = this.getChildControl("study-menu-conversations");
166+
study.getUi().bind("mode", conversationsButton, "visibility", {
167+
converter: mode => mode === "standalone" ? "visible" : "excluded"
168+
});
169+
}
170+
154171
if (osparc.product.Utils.hasConvertToPipelineEnabled()) {
155172
const convertToPipelineButton = this.getChildControl("study-menu-convert-to-pipeline");
156173
study.getUi().bind("mode", convertToPipelineButton, "visibility", {

0 commit comments

Comments
 (0)