Skip to content

Commit ef1cb97

Browse files
committed
definitions
1 parent d85019a commit ef1cb97

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ qx.Class.define("osparc.study.Conversations", {
4646
},
4747

4848
statics: {
49+
TYPES: {
50+
PROJECT_STATIC: "PROJECT_STATIC",
51+
PROJECT_DYNAMIC: "PROJECT_DYNAMIC",
52+
},
53+
4954
popUpInWindow: function(studyData) {
5055
const conversations = new osparc.study.Conversations(studyData);
5156
const title = qx.locale.Manager.tr("Conversations");
@@ -58,14 +63,14 @@ qx.Class.define("osparc.study.Conversations", {
5863
return win;
5964
},
6065

61-
addConversation: function(studyId, name = "new 1") {
66+
addConversation: function(studyId, name = "new 1", type = this.TYPES.PROJECT_STATIC) {
6267
const params = {
6368
url: {
6469
studyId,
6570
},
6671
data: {
6772
name,
68-
"type": "PROJECT_STATIC",
73+
type,
6974
}
7075
};
7176
return osparc.data.Resources.fetch("conversations", "addConversation", params)

0 commit comments

Comments
 (0)